Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 07 22:32
    scottaohara opened #1108
  • Mar 07 22:05
    scottaohara opened #1107
  • Mar 07 17:39
    scottaohara commented #1104
  • Mar 07 17:29
    selfthinker commented #1104
  • Mar 07 17:20
    selfthinker closed #1104
  • Mar 07 17:20
    selfthinker commented #1104
  • Mar 07 17:06
    scottaohara commented #1104
  • Mar 07 16:42
    selfthinker commented #1104
  • Mar 07 15:44
    scottaohara commented #1104
  • Mar 07 15:27
    scottaohara commented #1104
  • Mar 07 05:05
    selfthinker edited #1104
  • Mar 06 23:55
    nschonni commented #1104
  • Mar 06 16:38
    scottaohara opened #1106
  • Mar 06 16:19
    scottaohara opened #1105
  • Mar 06 13:01
    selfthinker opened #1104
  • Mar 06 13:01
    selfthinker labeled #1104
  • Mar 06 02:58
    daniayivi reopened #1103
  • Mar 06 02:58
    daniayivi closed #1103
  • Mar 06 02:57
    daniayivi commented #1103
  • Mar 05 23:57
    sideshowbarker labeled #1103
Michael[tm] Smith
@sideshowbarker
ah yeah
for your use case you probably don’t want any language detection to be performed anyway
Peter Rushforth
@prushforth
No I didn't but I wasn't averse to adding the attribute, but then it got a little hairy
Peter Rushforth
@prushforth
Doesn't seem to be https://github.com/validator/validator/blob/master/src/nu/validator/xml/langattributes/XmlLangAttributeDroppingContentHandlerWrapper.java as a breakpoint in the startElement method for that ContentHandler doesn't get called when validating a mapml document with <mapml lang="en">, perhaps because the schema isn't one of those designated by VerifierServletTransaction.isXmlLangAllowingSchema() as allowing xml:lang, and indeed it's lang not xml:lang . But I think I will just avoid the whole issue by not adding the attribute and chalk it up to something that will no doubt become clear in time. Thanks for your advice on this! Have a great Monday December 17th (my 58th birthday, which I am taking off as a national holiday).
Michael[tm] Smith
@sideshowbarker
oh!
happy 58th!
Peter Rushforth
@prushforth
Thanks!!
Michael[tm] Smith
@sideshowbarker
enjoy the day off
Peter Rushforth
@prushforth
Whoa, I set htmlParser.setMappingLangToXmlLang() from true to false and now it's validating correctly. I see in the HtmlAttributes class hixie has a note "Be careful with this class. QName is the name in from HTML tokenization." Which makes me feel like Young James Heriot (dinna mess wit sumat ye ken nawt aboot).
Michael[tm] Smith
@sideshowbarker
@prushforth heh. I wish I could claim I understand all that handling myself, but actually every time I need to mess around with it, I basically have to re-learn it all again — because I forgot whatever I had known about it from the previous time I touched it. And then after re-learning it I just forget it all again until the next time
Peter Rushforth
@prushforth
Lol
Peter Rushforth
@prushforth
@sideshowbarker Hi Mike Happy New Year! What is the division of labour between a checker and Assertions.java? Is there a category of task which deserves its own checker? Thanks.
Michael[tm] Smith
@sideshowbarker
Happy New Year @prushforth. I’ve not really followed any strict division, but the language-detector code is an example of something added more recently that seemed big enough on its own to merit a separate checker.
Going a little further back in time, another example is the Microdata checker
on the other hand, the RDFaLite checker is one that I made into a separate checker but that in hindsight I could have just as well incorporated into the Assertions.java code, I guess
…because it’s much simpler than the Microdata checker, and doing much fewer checks
the XmlPiChecker is another that was a big-enough and complicated-enough chunk of code on its own to merit a separate checker
Peter Rushforth
@prushforth
OK great, I will keep that info in mind. Good evening!
Mike
@skazx_twitter
hey all, is this room for a specific type of validator? I'm using express-validator.js and had a question about validating a string that is alphanumeric with spaces (street address).
Michael[tm] Smith
@sideshowbarker
@jaimeiniesta I finally set up some automation that makes a new jar available for every commit to master
Mavaddat Javid
@mavaddat
hi all I would like to build a child-friendly version of nu validator that uses more plain English and visuals to explain syntax mistakes to children learning to code
Patrycja Kazala
@QMG-kazala
Hi, is it possible to use nu validator in Java, from the code level? I found this: https://vzurczak.wordpress.com/2015/03/16/validating-a-html-page-with-java/ , which has a workaround, but I was hoping there is a more straightforward and more legitimate way.... Cheers
Michael[tm] Smith
@sideshowbarker
@QMG-kazala https://gist.github.com/vincent-zurczak/23e0f626eaafab96cb32 is the straightforward way to do it, actually — not just a workaround
Patrycja Kazala
@QMG-kazala
thx @sideshowbarker ! I've seen the corresponding blog post (https://vzurczak.wordpress.com/2015/03/16/validating-a-html-page-with-java/) but was hoping there might be a tidier way. I'll give it a try anyway as I'm testing different approaches to html5 validation at the mo :) thx again
Michael[tm] Smith
@sideshowbarker
@QMG-kazala yeah, I guess the https://github.com/validator/validator/blob/master/src/nu/validator/client/EmbeddedValidator.java code in the repo might be a better starting point than the lower-level way the person used by the person who wrote that blog post
I’ve never actually used that EmbeddedValidator.java code myself (a contributor added it), so I’m not completely certain it works as expected. But at least I can say from looking at the code, it looks like it should work
anyway, if you run into any specific problems, feel free to ping me here again
Michael[tm] Smith
@sideshowbarker
PSA: yesterday I made an change to the Dockerfile for the checker which reduces the image size from 130MB down to “just” 60MB
I smoke-tested the resulting image to make sure the change didn’t regress anything, but I otherwise did no testing beyond that — because I personally don’t actually use the Docker image for anything
so any of y’all who actually do use the Docker image, please try running the latest from Docker Hub and if you notice any problems, either lemme know here or else file an issue
payaln
@payaln
Hi!
I have a problem validating an html file with hieroglyphs (there are many such errors, here is one of them - "Malformed byte sequence: “ba”")
The file was saved with gb2312 encoding and has the tag <meta http-equiv="content-type" content="text/html; charset=gb2312">
Hieroglyph is encoded by several bytes, but error talk about only one byte. I think it's strange.
What could be the problem?
Michael[tm] Smith
@sideshowbarker
Hi @payaln
Can you point me at the URL for a document that causes the validator to emit that error message?
My initial guess is, the document is being served with a Content-Type header that has a charset parameter which is something other than gb2312
payaln
@payaln
Hi, @sideshowbarker
https://gofile.io/d/vI7lDM
Michael[tm] Smith
@sideshowbarker
@payaln The checker doesn’t report any “Malformed byte sequence” errors when I check that 1.htm file
As I said earlier, I think the reason you would get that error is if the document is being served with a Content-Type header that has a charset parameter which is something other than gb2312 (or gbk)
payaln
@payaln
@sideshowbarker , you can show me true file with hieroglyphs and gb2312 encoding?
Jan Rummens
@janrum
So if you want to participate in testing eth2 medalla, you need to have a validator node?
new speaking :-)
newbie that is
your client to use is prysm?
you need to deposit 32ETH and convert it to GoETH
My question what cloud infrastructure is best to use? Any ideas on ANKR?
Thanks.
I hope your not all asleep ...
Bagboy4l
@Bagboy4l
python ./checker.py run # to run only
Support