1,761 questions
1
vote
0
answers
76
views
Why does a floated block create an anonymous block box?
In general, there is the next slide from the presentation the life of a pixel:
Quote from spec:
A block container box either contains only block-level boxes or establishes an inline formatting ...
2
votes
1
answer
87
views
When importing tables or memories, why should the "actual max size" be less than the "expected max size"?
While looking through the WebAssembly 1.0 specification I got confused by the type rules for matching limits when importing memories or tables (section "4.5.2.1 Limits"). This also goes for ...
2
votes
2
answers
371
views
What is the correct value of HTML <dialog>'s `returnValue` per spec when the dialog is canceled with Esc?
Check this dialog box implementation.
const open = document.getElementById('open')
const dlg = document.getElementById('dlg')
open.addEventListener('click', function () {
dlg.showModal()
})
dlg....
0
votes
0
answers
26
views
Data JPA Specification query for TEXT[] columntype
I've created CalendarEvent Enity as below:
package com.vissibl.core.domain
import com.vissibl.core.api.calendar.EventStatus
import com.vissibl.core.api.calendar.EventType
import com.vissibl.core.api....
9
votes
1
answer
556
views
Which HTML elements can break into several rectangles?
CSS styles such as display: inline allow <span> and <div> to break (fragment) into several rectangles on separate lines, whereas <fieldset> and <button> with the same CSS rules ...
-2
votes
5
answers
230
views
SVG <animate> rewind works in Firefox, not in Chrome
Here's a snippet where the user controls the progress of SVG <animate> using a slider. It works in Firefox. But in Chrome, after sliding it to the very end, sliding anywhere makes it go to the ...
2
votes
3
answers
208
views
CSS of <use> element inconsistent across browsers and within browsers
The following code yields one circle in Firefox, but two circles in Chrome:
.foo {
visibility: hidden;
}
.foo:nth-child(2) {
visibility: visible !important;
}
<svg>
<circle class="foo" ...
1
vote
1
answer
55
views
MemberExpression evaluation order of null/undefined base
Why does the following code throw TypeError: Cannot set properties of null instead of Error: property key evaluated?
var base = null;
var prop = {
toString: function() {
throw new Error("...
0
votes
0
answers
45
views
Are the conditions for Vue-hydratability specified?
Is there a specification of the HTML a server has to produce so that Vue (3.x) can hydrate it?
"Easy": get a Vue app server side rendered (we have successfully used Nuxt in production)
&...
3
votes
2
answers
189
views
What does it mean that the Jakarta EE Platform specification adds support for a specific Java SE runtime?
The Jakarta EE Platform 10 specification states the following:
The goal of the Jakarta EE 10 release is [...] adding the support for
the Java SE 11 and newer runtimes. The TCKs require support for ...
6
votes
1
answer
244
views
Why are you allowed to assign a field to itself?
I've been coding in Java since 2005 and never thought that the code like that would actually be compilable:
public class FooClass {
public static final String FOO = FooClass.FOO;
}
Intellij ...
0
votes
0
answers
30
views
whether "//" can be used for path specification?
If I write
http://example.com//about.php
what will happen?
whether "//" can be used for path specification?
6
votes
2
answers
168
views
16/32/64 bit multiplication inconsistency in C++
I am confused in C++ specification and I don't understand the following (I found similar topics but not exactly my question)
Given the following source:
int16_t a = 10000;
int16_t b = 20000;
int32_t c ...
1
vote
1
answer
739
views
How to use projection with specification in spring data jpa with jpa fluent api
I am trying to use interface base projection with JPA named methods and add specification, I read github issue and there the mod indicated that as of spring data jpa 3 we can use projection and ...
-4
votes
1
answer
249
views
Why is the Unicode micro character µ (U+00B5) not included as a valid XML NameChar? [closed]
In composing an XML DTD, <!ENTITY % linearunit "( ... | ... | ...)"> listing all of the acceptable strings for linear measurement units in an application, I've just become aware that &...
0
votes
0
answers
162
views
Spring Boot 3.4 - JPA specification and Projection
From what I have seen from the docs the JpaSpecificationExecutor now has a way to handle projections using the findBy() method.
The first method does return records correctly although it is selecting ...
0
votes
1
answer
167
views
When do custom elements invoke lifecycle hook formStateRestoreCallback with reason argument equal to "autocomplete"?
I tried to find examples where the formStateRestoreCallback lifecycle hook could return autocomplete as the second reason argument, but I didn't find anything.
Here is a quote from the specification:
...
0
votes
0
answers
41
views
Spring Boot JPA Projection don't work with Specification and Pagable as expected
I have simple entity.
When I invoke findPageableCommunityAccess from below examples I'm receiving result that look like CommunityAccess (full object) instead CommunityAccessProjection.
Do Projections ...
1
vote
1
answer
55
views
Spec array transformation using jolt
i have two kinds of input the jsons
case 1:
{
"MainObject": {
"MainObjectDetails": {
"SubDetails": {
"ObjectProperty": "1"
}
...
1
vote
1
answer
68
views
Transform JSON using jolt transformation
I have the input JSON
{
"MainObj": {
"SubObject": {
"Invoices": [
{
"InvoiceItemsDetail": [
{
"...
0
votes
0
answers
224
views
Asp.NET Core: OpenAPI buildtime generated specs file does not include prefix
I am trying to generate a specifications file at buildtime for my controllers using OpenApi.
I included this in the csproj file:
<OpenApiDocumentsDirectory>$(MSBuildProjectDirectory)/ApiSpecs<...
0
votes
1
answer
61
views
How a property is set on a window object when specifying an element ID
I'm trying to understand the mechanics of setting properties on the window object.
There is this code:
const owner = Object.getPrototypeOf(Object.getPrototypeOf(window))
const desc = Object....
1
vote
0
answers
47
views
Create OpenAPI examples from OpenAPI ruleset?
I'm wondering if there are extensions, libraries or applications which can help create examples from OpenAPI rulesets used for linting OpenAPI specifications.
I've been googling for "generate ...
2
votes
0
answers
93
views
How to Replace IN Operator with JOIN in Dynamic Criteria Using JPA Specification?
I have a requirement to build a dynamic filter criteria based on filters I receive. Initially, I used the Specification approach, and it is working as expected in production. However, the new ...
0
votes
1
answer
60
views
Spring Data specifications with correlated subquery
How one using spring data specifications can do the equivalent of this:
select a.*, (select count(1) from b where b.a_id = a.id) as count
from a;
If this is not possible is there an equivalent?
1
vote
0
answers
76
views
MIDI spec: "respond accordingly" to missing LSB or MSB of parameter number
What does the MIDI 1.0 Detailed Specification mean by "respond accordingly" to receiving only a least-significant byte (LSB) or a most-significant byte (MSB) (but not both) for a (non-)...
6
votes
1
answer
94
views
Is string slice-by-copy a CPython implementation detail or part of spec?
Python does slice-by-copy on strings: Does Python do slice-by-reference on strings?
Is this something that all implementations of Python need to respect, or is it just a detail of the CPython ...
1
vote
1
answer
61
views
Transform a JSON array by Jolt into a new JSON object
I have an array of JSON Objects that I need to transform into a new array of JSON Objects that align with my schema. I am new to Jolt and my output is not what I need.
I tried multiple ways but not ...
0
votes
2
answers
152
views
Will SEEK_SET SEEK_CUR SEEK_END not be 0,1,2 on any C lib?
For whence parameter of fseek (or lseek in POSIX), some languages that calls C lib assume SEEK_SET, SEEK_CUR, SEEK_END are 0,1,2, respectively, such as gfortran, Nim [^py].
[^py]: while Python's seek ...
0
votes
0
answers
108
views
Pyinstaller: Spec File Not Found
Pyinstaller is unable to locate my spec file to build my application.
This error occurs:
E:\Hqtools\scan-certyify\app>CALL ..\venv\Scripts\activate.bat
1923 INFO: PyInstaller: 6.9.0, contrib hooks: ...
0
votes
2
answers
76
views
Conflicting JVM specs between what can be verified run and what is debuggable wrt local variables?
On one hand the Java class spec says:
There may be no more than one LocalVariableTable attribute per local variable in the attributes table of a Code attribute.
But on the other hand lots of ...
0
votes
0
answers
28
views
What does docker compose "links" actually do? [duplicate]
According to the compose file spec,
links defines a network link to containers in another service.
That would make sense, except reading further…
Links are not required to enable services to ...
-2
votes
1
answer
148
views
How can I improve the accuracy of ChatGPT in Prolog?
How can I design a ChatGPT alternative that recognises patterns in algorithm specifications in Prolog and maps input to output?
I need recursive patterns in nested list form with [r,"a"] for ...
2
votes
2
answers
258
views
What, exactly, is the total number of characters in C's "basic execution character set"?
The following pages on cppreference.com seem jointly inconsistent:
https://en.cppreference.com/w/c/language/charset
Basic character set is also known as basic source character set.
The basic ...
1
vote
0
answers
172
views
Does the GraphQL specification allow for empty objects in a response?
Is it valid for a GraphQL server to return an empty object (i.e. {}) as a field's value?
For example, given a GraphQL schema like
type Query {
person: Person
}
type Person {
name: String
}
and a ...
-1
votes
1
answer
75
views
What does it means by "the following additional names" in the ECMA-262 specification?
There is a paragraph:
The “Signature” column of Table 4 and other similar tables describes the invocation pattern for each internal method. The invocation pattern always includes a parenthesized list ...
0
votes
1
answer
138
views
How does HTML parser interact with Speculative parser
Whatwg spec describes conception of the speculative HTML parsing.
So, there are many places in spec with the term active speculative parser. Spec says that HTML parser that owns an instance of ...
3
votes
2
answers
88
views
Concatenating values of Json only when inputted via Jolt
I have the following inputted Json:
{
"extraFields": {
"language": "french",
"status": {
"comment": "hey"
}
}
}
Using ...
0
votes
0
answers
102
views
When can template.content return null?
Note: I asked this question in the WHATWG repo, but the issue was closed almost instantly with a reason stating something like "this sort of question is better suited for SO".
The WHATWG ...
0
votes
0
answers
51
views
Does "member" mean "child" in the ECMA-262 spec?
I'm reading the ECMA-262 spec. The spec starts by giving definitions, but they keep using the word "member" in a context that is odd to me:
4.4.5 primitive value - member of one of the ...
0
votes
1
answer
74
views
JOLT SPEC: Shift into existing array
Currently I have the following INPUT JSON.
The "temp"-Object has been added
with the help of a default spec.
{
"items": [
{
"description": "myDescription&...
0
votes
2
answers
50
views
How to revers a seq relation in Alloy
sig Customer {
orders: seq RecordedOrder,
}
sig RecordedOrder {}
fact "example fact" {
all o:RecordedOrder |
#o.~orders > 0;
}
How can I revers the orders relation, the ...
3
votes
1
answer
35
views
What are the allowed values / source spec for umlRole in a metaconstraint?
In a UML definition of a metamodel it is possible to define metaconstraints e.g.
<<metaconstraint>> umlRole="classifier"
<<metaconstraint>> umlRole = "class"...
0
votes
1
answer
192
views
JOLT SPEC for Filtering on two Conditions
I have trouble finding the right Jolt Spec.
This is my Input JSON:
{
"value": [
{
"identifier": "plm",
"value": "3",
"...
2
votes
1
answer
119
views
Why including padding to the nearest scrollport changes the threshold position of the sticky element where it sticks?
As per my understanding, for Sticky Positioning Scheme, the CSS spec defines that the insets applied to an sticky element is relative to the edges of the nearest scrollport which then forms the Sticky ...
0
votes
1
answer
113
views
Unclear behaviour of variable signatures in alloy models
I'm currently learning Alloy, and I'm struggling to understand the behaviour of variable signatures. I'm attempting to model a straightforward rental system where all items are initially available and ...
1
vote
0
answers
87
views
Django miss static files after packaging with pyinstaller
I packaged my django project with pyinstaller, my project tree is like below:
I did all bellow steps:
Copy all static file into static/ with python manage.py collectstatic
Add all static file in ....
4
votes
1
answer
236
views
Error in Bluetooth specification? Heading field of Location and Speed
The Location and Speed characteristics in section 3.137 of the Bluetooth GATT Specification Supplement document defines the Heading field (Version Date: 2024-02-21)
It is specified as a uint16 with a ...
1
vote
1
answer
79
views
onEdit() dependent on more than 1 variable
I found this code written by --Hyde that I understand half of how it works but it works perfectly. It is a trigger to create checkboxes in one cell of column A if one cell of column B is not empty. I ...
1
vote
2
answers
659
views
Check for array intersection with Spring JPA and Specification API
I have a model representing an article:
public class Article {
@Id
private Integer id;
private String title;
private String content;
// ...
// plenty of other article ...