specifications

RPM upgrade uninstalls the RPM

China☆狼群 提交于 2019-11-30 10:26:40
问题 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? 回答1: Yes, when an RPM upgrade occurs,

Why doesn't top: 0 work on absolutely-positioned elements relative to body?

扶醉桌前 提交于 2019-11-30 08:19:38
You can see in the code below that the h1 pushes down the body and the absolutely-positioned block .absolute does not stick to the top. But you also can see that the same block is stuck to the top of its parent .wrapper . Why? I'm not asking how to do that trick; I know how, e.g. padding instead margin to h1, or clearfix to parent and so on. I'm interested in only one thing: why h1 's margin pushes down the body , but is not pushing down .wrapper ? body { position: relative; margin: 0; padding: 0; overflow: hidden; background-color: silver; } .absolute { position: absolute; top: 0; left: 0;

Why does setting XMLHttpRequest responseType before calling open throw?

坚强是说给别人听的谎言 提交于 2019-11-30 06:39:40
Running new XMLHttpRequest().responseType = "json" in the console throws an "InvalidStateError" exception in Firefox 26 and IE11 but not in Chrome 31. Why? The Spec states that setting responseType throws an "InvalidStateError" exception if the state is LOADING or DONE. but in this case the state is UNSENT. What's going on? It's a working draft , so it's normal if there are small differences or bugs in the implementations. I think Firefox still follows the behavior described in the draft of August 2011 , where is specified that the exception is thrown if the state is not OPENED or HEADERS

Understanding the “additionalProperties” keyword in JSON Schema draft version 4

扶醉桌前 提交于 2019-11-30 05:59:31
Link to the specification: http://json-schema.org/latest/json-schema-validation.html#anchor64 Section 5.4.4.2 states: Successful validation of an object instance against these three keywords depends on the value of "additionalProperties": if its value is boolean true or a schema, validation succeeds; ... Section 5.4.4.3 states: If "additionalProperties" is absent, it may be considered present with an empty schema as a value. Ok, so if "additionalProperties" is absent, it counts as being present with an empty schema. And if it's a schema (of any kind), then the object validates successfully

h264 inside AVI, MP4 and “Raw” h264 streams. Different format of NAL units (or ffmpeg bug)

二次信任 提交于 2019-11-30 04:56:45
问题 TL;DR: I want to read raw h264 streams from AVI/MP4 files, even broken/incomplete. Almost every document about h264 tells me that it consists of NAL packets. Okay. Almost everywhere told to me that the packet should start with a signature like 00 00 01 or 00 00 00 01 . For example, https://stackoverflow.com/a/18638298/8167678, https://stackoverflow.com/a/17625537/8167678 The format of H.264 is that it’s made up of NAL Units, each starting with a start prefix of three bytes with the values

What exactly is a Specification?

烂漫一生 提交于 2019-11-30 04:55:31
I read or hear sentences such as: The Java Persistence API (JPA) is a Java application programming interface specification... or JavaServer Faces (JSF) is a Java specification... but I am not sure if I understand what a specification exactly is.. Lets say I create a new specification JMA, Java Math API, which is a Java Math Specification.. Is it enough that I define my specification as follows: JMA must provide a method that adds two integers? or, do I have to create a document something like: JMA must provide the method: int jmaAdd(int x,int y)? or, do I have to create the interfaces and

PHP language specification?

自闭症网瘾萝莉.ら 提交于 2019-11-30 04:41:50
I know there is an official document for Java (JLS), I'd like to know if it's also the case of PHP language. I found the "Language Reference" section on the PHP manual, but it doesn't look as detailed as the JLS. The thing is I have a good practical knowledge of PHP but I'm miserably clueless about what really happens under the hood. If there isn't any official document, could you recommend me some good books to read? An initial draft specification for the PHP language has now been announced . The introduction of the specification reads as follows: This specification is intended to provide a

Spring Data JPA. How to get only a list of IDs from findAll() method

大兔子大兔子 提交于 2019-11-30 04:39:32
I have a very complicated model. Entity has a lot relationship and so on. I try to use Spring Data JPA and I prepared a repository. but when I invoke a method findAll() with specification for the object a have a performance issue because objects are very big. I know that because when I invoke a method like this: @Query(value = "select id, name from Customer ") List<Object[]> myFindCustomerIds(); I didn't have any problems with performance. But when I invoke List<Customer> findAll(); I had a big problem with performance. The problem is that I need to invoke findAll method with Specifications

Was the misspelling of the HTTP field name Referer intentional?

倖福魔咒の 提交于 2019-11-30 04:10:52
I read recently (I can't recall where, or I'd return to that source) that the misspelling of HTTP header field name Referer in the specification was intentional. Is that accurate? If so, why? Phillip Hallam-Baker and Roy Fielding are responsible for it. By the time they realized it was incorrect, too many people were using it. Now, Phillip jokes about getting the Oxford Dictionary to recognize his spelling : Its like when I did the referer field. I got nothing but grief for my choice of spelling. I am now attempting to get the spelling corrected in the OED since my spelling is used several

What is the full list of standard keys recognized by the Java System.getProperty() method? [closed]

两盒软妹~` 提交于 2019-11-30 03:19:06
Is there a reference page that lists all the standard property keys that are always accepted by the Java System.getProperty(key) method? I am not referring to system properties that can be set by the user of the java command (this would be an unlimited list), but to the properties the runtime sets itself (such as java.version , java.specification.version , etc). Maybe also helpful: Show the effective property values your JVM picks up: java -XshowSettings:all Like: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html ? I'd say Oracle will have a list Update (copied from