specifications

PDF specifications for coders: Adobe or ISO?

旧城冷巷雨未停 提交于 2019-11-30 03:06:47
I want to code an application that can read and decode a pdf document; now where I'm supposed to get the specs for this fileformat ? The PDF format is standardized from the ISO group but it's not clear to me where is the most reliable source for getting this kind of informations. what is a good source to start with this file format ? David van Driessche You can actually use both sources you mentioned; the confusion is historical. Adobe invented PDF and it invented the Acrobat product family to be used together with it. The different PDF versions were released together with major Acrobat

html5: Significance of attribute named required in checkbox/radio

旧街凉风 提交于 2019-11-30 00:48:14
问题 On form submission, how could you possibly mark a checkbox/radiobutton as required? Source of inspiration: Pekka's answer to a question 回答1: Required checkboxes are not unusual. Practically every registration form uses some form of the "I have read and accept the User Agreement" checkbox. If you have Opera handy try out the code below. The form won't submit unless the checkbox is checked. <!doctype html> <html> <head> <title>html5</title> </head> <body> <h1>html5 test</h1> <form action="/">

Fetch API - What's the use of redirect: manual

浪子不回头ぞ 提交于 2019-11-30 00:17:42
问题 I've recently been playing with the Javascript Fetch API. As far as I understand, by default all redirects are handled transparently and in the end I get a response from the last call in the redirect chain. However, I could invoke fetch with {redirect: 'manual'}, in which case it would return an opaqueredirect response with no usable information. From https://fetch.spec.whatwg.org/#concept-filtered-response-opaque-redirect An opaque-redirect filtered response is a filtered response whose type

What is the maximum size of a Java .class file?

不羁的心 提交于 2019-11-30 00:08:08
A .class file is a rather well documented format that defines sections and size, and therefore maximum sizes as well. For instance, a .class file contains a magic number (4 bytes), a version (4 bytes), the constant pool (variable size), etc. But sizes can be defined on several levels: you can have 65535 methods and each is limited to 65535 bytes. What are the other limits? And, if you would make the largest .class file possible, what size would it be? If needed, limit answers to Java. Meaning that if Scala or Clojure (or...) change some limits, disregard those values. The JVM specification

RPM upgrade uninstalls the RPM

懵懂的女人 提交于 2019-11-29 20:27:05
I am upgrading our project RPM. The problem is when I upgrade from projectname-1.0-0 to projectname-1.0-1, it first installs the new project and uninstalls the old project, which, in overall view, removes my project entirely. I have used "vv" option while upgrading and the output showed the uninstallation is done after installation. Somebody please help with this problem. Is there anything I should change specifically in the RPM spec or rpmbuild options? Yes, when an RPM upgrade occurs, RPM first installs the new version of the package and then uninstalls the old version of the package. Only

Can HTTP PUT request have application/x-www-form-urlencoded as the Content-Type?

会有一股神秘感。 提交于 2019-11-29 17:33:58
问题 Is it valid to send form data in an HTTP PUT request? If you could point me to a spec then that would be great. I have gone through the HTTP 1.1 spec. But I did not find whether PUT requests can have form data or not. I am using Java for creating and accessing RESTful webservices. POST supports application/x-www-form-urlencoded as the Content-Type. From the specification, I understand that POST is for creating a new resource (a subresource to the resource identified by the request URI) and

Is a trailing ampersand legal in a URL?

北战南征 提交于 2019-11-29 13:23:43
A URL like http://localhost/path?a=b&c=d is fine - but what is the status of the same URL with a trailing ampersand? http://localhost/path?a=b&c=d& For example the Java Servlet API allows it where Scala's Spray does not (ie it throws an error). I've tried to find the answer in the URI syntax spec , but not sure how to parse their grammar. The URI syntax spec is for generic URIs. It allows anything in the query . I am not aware of any specification which actually specifies ampersand-separated key=value pairs. I believe it is merely convention. I know that PHP, for example, offers an option for

CSS *only* detection of text overflows in HTML?

天大地大妈咪最大 提交于 2019-11-29 13:23:00
I've seen suggestions on using JavaScript for detecting and acting on text that overflows an HTML element. But it's 2013, so I was wondering if maybe the CSS spec had a way to detect overflows itself. In other words if I have a fixed size div: <div class="smart-warning" style="width:200px; height:20px; overflow:hidden"> This is my very long text that would overflow the box. </div> I'd like to have a style that would do something if the text overflowed such as: <style> .smart-warning { border:1px solid black } .smart-warning:overflowing { border:1px solid red } </style> It seems like we'd be

Is the at-sign (@) a valid HTML/XML tag character?

泄露秘密 提交于 2019-11-29 13:16:35
I'm doing some HTML stripping using regular expressions (yes, I know, never parse HTML with regexes, but I'm just stripping it, and I also unfortunately cannot use any external libraries). I'm using a regex from the Regular Expressions Cookbook, and it has worked great, except I just ran into this problem: In the string Bob Saget <bobs@aol.com> , my regex is matching the email as a tag. So my question is, is the @ sign a valid XML or HTML tag character? (I'm not asking whether or not it is valid within an attribute; I know that it is) If it is not, I will be able to successfully exclude it in

Multi column search using Specifications Spring Data Jpa within associated entity?

别来无恙 提交于 2019-11-29 13:15:28
I am taking this question Perform multi column search on Date, Integer and String Data type fields of Single Table? and This method must return a result of type Specification<Employee> in Java 8 further ahead. Actually I wanted to search within association entity as well as a part of global search. Will that be possible using JPA 2 Specifications API ? I've Employee and Department @OneToMany bi-directional relationship. Employee.java @Data @Builder @AllArgsConstructor @NoArgsConstructor @Entity public class Employee implements Serializable { private static final long serialVersionUID = 1L; @Id