Better HN
topnewbestaskshowjobs
Log inSign up

ya

11 karma · joined Jul 5, 2012 (14y ago) · 26 submissions

[ my public key: https://keybase.io/nos; my proof: https://keybase.io/nos/sigs/7xUemL29P4C7S7rdj-0G9L4ULKkYV5YpSzut7hh5-Nc ]

hnchat:UM7Wsz5SVNFB6FCLLy4w

Submissions

comment 6y ago · link · parent

error stack if browse with Chrome 83:

``` Invalid user input found for this request. com.apple.sse.communities.web.filter.security.SecurityViolationException: ViolationType=INVALID_PATTERN, key=headerName:sec-ch-ua-mobile, id=HeaderValue, config=SecurityConfig(name=HeaderValue, allowedValues=[], ignoredValues=[], enabled=true, regex=[\w\s\:\%\/\-\+\_\.\@\=\;\,\(\)]+, length=256, sanitize=false, pattern=[\w\s\:\%\/\-\+\_\.\@\=\;\,\(\)]+) input=?0 at com.apple.sse.communities.web.filter.security.SecurityValidationRequestWrapper.validate(SecurityValidationRequestWrapper.java:384) at com.apple.sse.communities.web.filter.security.SecurityValidationRequestWrapper.cleanseHeaders(SecurityValidationRequestWrapper.java:272) at com.apple.sse.communities.web.filter.security.SecurityValidationRequestWrapper.<init>(SecurityValidationRequestWrapper.java:100) at com.apple.sse.communities.web.filter.security.RequestCleansingFilter.doFilterIfEnabled(RequestCleansingFilter.java:42) at com.apple.sse.communities.web.filter.AbstractWebFilter.doFilterInternal(AbstractWebFilter.java:32) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) at com.apple.sse.communities.web.view.i18n.UrlLocaleFilter.doFilterInternal(UrlLocaleFilter.java:186) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) at com.apple.sse.razor.http.filter.HttpServletRequestValidationFilter.doFilter(HttpServletRequestValidationFilter.java:36) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) at com.apple.sse.communities.web.filter.HttpServletMetricsFilter.captureMetrics(HttpServletMetricsFilter.java:80) at com.apple.sse.communities.web.filter.HttpServletMetricsFilter.doFilter(HttpServletMetricsFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) at com.apple.sse.razor.http.servlet.ServletAccessLogFilter.doFilter(ServletAccessLogFilter.java:69) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) at com.apple.sse.razor.web.RazorWebRequestFilter.doFilterInternal(RazorWebRequestFilter.java:156) at com.apple.sse.razor.web.RazorWebRequestFilter.doFilter(RazorWebRequestFilter.java:76) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:502) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:411) at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:305) at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:159) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) at java.base/java.lang.Thread.run(Thread.java:834) ```

2.

Chrome 83 would cause apple support website internal error(discussions.apple.com ↗)

1 points · by ya · 6y ago · 2 comments

comment 9y ago · link · parent

the website redirect to /ch/index.html , and show nothing but `File not found."`

found this in javascript:

  case 'zh':
		location.href = _WARP_ + 'ch/index.html';
		break;
Chinese index page missing?

4.

Google Developers for China(developers.google.cn ↗)

1 points · by ya · 9y ago · discuss

comment 10y ago · link · parent

the Esee Cloud Android App seems to be developed by the one who own the email address in the article: https://play.google.com/store/apps/details?id=com.juanvision...

6.

Firefox 29 over optimized?(zhuangya.github.io ↗)

2 points · by ya · 12y ago · 1 comment

comment 13y ago · link · parent

by the way:

> 33554428 .toString(2) '1111111111111111111111100'

comment 13y ago · link · parent

so i just wrote a page with "bfc" method.

and the "main" div has a really big width like:

  width: 100000000000000px;
however when i inspect this element in safari's inspector, it shows as "33554428px" width, it seems to be a safari upper boundary huh?

9.

33554428 in safari (d.pr ↗)

1 points · by ya · 13y ago · 2 comments

comment 13y ago · link · parent

ripple.. you bastard,.

comment 13y ago · link · parent

everything is good, but i think the image sharing url is a little bit of ugly :((

comment 13y ago · link · parent

http://d.pr/i/oEmN chrome banned the request.

comment 13y ago · link · parent

I am not the author, but i think this is really really useful.

14.

Readable Chrome Devtool Theme(github.com ↗)

1 points · by ya · 13y ago · 1 comment

comment 13y ago · link · parent

thanks!

16.

Firefox bitwise operation speed?(jsperf.com ↗)

2 points · by ya · 13y ago · 2 comments

comment 13y ago · link · parent

brew install qrencode

http://fukuchi.org/works/qrencode/index.html.en

comment 13y ago · link · parent

in fact, it would be much much better if there is official support for vim i think.

comment 13y ago · link · parent

53 LOL

comment 13y ago · link · parent

where is vim support? :(

21.

Stylus: --watch automatically recompile the wrong file(stackoverflow.com ↗)

1 points · by ya · 14y ago · 1 comment

22.

Readability Safari Extensions for Safari is missing.(readability.com ↗)

1 points · by ya · 14y ago · 1 comment

comment 14y ago · link · parent

i want write a function called _42 in kinds computing languages which implement this functionality: accept anything(parameters), and return nothing but 42.

:)

Just a simple idea here, nothing special.

24.

42(github.com ↗)

1 points · by ya · 14y ago · 2 comments