18,212 questions
1
vote
2
answers
99
views
Set System.GPS.Latitude and System.GPS.Longitude properties using VBA
I have a VBA Project in a Word document with all of the code required to
read the following properties from an image file: Title, Comments, TagsKeyWords, Subject, GPS Latitude and GPS Longitude
... ...
0
votes
1
answer
119
views
data class marked with ConfigurationProperties is not loaded in SpringBootTest
I have Spring Boot 3.5 application:
@SpringBootApplication(
scanBasePackages = [
...
]
)
@EnableConfigurationProperties(
value = [
....
MyProps::class,
]
)
...
-1
votes
2
answers
73
views
Allowed propertyName for Javascript setProperty [closed]
I'm using javaScript setProperty(propertyName, value) a lot and it works perfectly until I want to set properties like justifyContent when using flexboxes.
It does work with the propertyName '...
0
votes
0
answers
59
views
Spring @PropertySource Property resolution order differs by Java SDK version?
I'm working on a Spring Framework project and recently upgraded the Java SDK from 11 to 17. After upgrading to Java 17, everything worked fine — the project built successfully, deployed without issues,...
2
votes
1
answer
76
views
Is there any property name that could set the version of a dependency?
Let's say I have a pom file, which includes a <properties> section, and a dependency -- let's say SLF4J for example.
Is there any possible property name that I could provide that would set the ...
1
vote
1
answer
32
views
FastifyAdapter bypasses global ValidationPipe for tz, resulting in 400 whitelistValidation error in production builds
FastifyAdapter bypasses global ValidationPipe for tz, resulting in 400 whitelistValidation error in production builds
Description
I’m experiencing an issue where my global ValidationPipe is correctly ...
4
votes
1
answer
94
views
Windows PowerShell parsing json - bracket vs dot
Using Windows PowerShell terminal for running a PS script.
I need to do (among the rest) some json file parsing. I ended up in a strange situation, here below posting a minimal example:
Json file:
{
...
2
votes
3
answers
186
views
Automatic property dependent on other properties
Let's say I have this:
class AA(string a, string b, string? c) {
...
}
record BB {
public string A { get; init; };
public string B { get; init; };
public string? C { get; init; };
...
0
votes
1
answer
74
views
Model Derivative returns outdated properties JSON file
The Model Derivative API endpoint
https://developer.api.autodesk.com/modelderivative/v2/designdata/<"model urn">/metadata/<"model guid">/properties?forceget=true
...
2
votes
0
answers
37
views
TypeScript: Property 'message' does not exist on type 'never' [duplicate]
I am using the useForm package in my react application and facing this issue. However, the code is running without any errors.
The error message is displayed as expected.
export const error = (errors: ...
0
votes
1
answer
46
views
How set OOTB common property in custom Spring Boot Starter?
I've implemented my own Spring Boot 3 Starter app and few other Spring Boot 3 apps which are using that starter.
Those "apps" are REST APIs and "starter" holds common ...
2
votes
1
answer
44
views
Appropriate way to access a property from its name as a string
I want to access (get or set) the property of an object from the string name of the property. I've found one way to do it:
PropertyValue property = obj.metaPropertyValues.find { it.name == '...
0
votes
2
answers
94
views
Interface calculated getters [duplicate]
Just getting in to interfaces and I can't seem to find how to implement calculated fields... I know I can do this in the deriving class, but is there a way to do this in the interface itself?
A very ...
0
votes
1
answer
186
views
How to declare property in abstract base class intended to be used with Pydantic field?
I several types of Widgets in my App. All share an interface I_Widget, including a read-only property "public_property".
I want some of them to use a member instead of the property.
from abc ...
1
vote
1
answer
106
views
js v8 computed property names and inline cache
as far as my understanding go, in v8 if property access occurs on object with persistent shape jit optimize it to prety much struct acces that is just offsetting a pointer but is the same rules ...
1
vote
0
answers
57
views
Spring @ConfigurationProperties works wierd, maybe incorrect
Was working on configuration classes and spotted strange behavior. Prepared small test to reproduce it:
@Slf4j
@Configuration
@ExtendWith(SpringExtension.class)
@ContextConfiguration(classes = ...
1
vote
1
answer
85
views
Python descriptors on Readonly attributes
I want to refactor a big part of my code into a generic descriptor for read only attribute access. The following is an example of property based implementation
class A:
def __init__(self, n):
...
-2
votes
1
answer
55
views
C# Keep property value when call the class several times [closed]
I have a class in C# defined as
public class Square{
public int Count{ get; set; }
}
I want to set in Count properties the amount of calls it has.
I set in the constructor
public Square()
{
...
0
votes
0
answers
53
views
Camel spring boot starter ignores properties location configuration
Can not figure out why I am not able to init bean properties by the Camel @PropertyInject during spring boot start.
Seems like camel.component.properties.location mentioned in the documentation ...
0
votes
1
answer
129
views
Spring Value annotation does not work for Map of string and URL [duplicate]
I have a problem with making Spring Value annotation work in Java. I have property defined like this:
@Value("#{${report.type.urls}}")
private Map<String, String> ...
0
votes
0
answers
61
views
Project properties window is blank, C# project in Visual Studio 2022 (Version 17.13.2)
I'm trying to prevent the console from closing on debug completion. I've already checked the debugging options to make sure this feature is not enabled. It isn't, but the console still closes.
I've ...
0
votes
0
answers
32
views
Tortoise SVN loses svn:keywords property setting
I have a weird Tortoise SVN issue after setting up a new Windows 10 workstation.
I've got my project working copy (repo is on a local server, connecting using svn+ssh) checked-out fine, and normal ...
2
votes
1
answer
103
views
How do you unwrap a python property to get attributes from the getter?
From "outside", how can I access attributes in a property's getter function whether by unwrapping it or some other way?
In a python property, its __get__ function seems to be a wrapper of a ...
0
votes
1
answer
147
views
How do I view lookup table values with Blazor QuickGrid?
OK I'm playing around with a Blazor tutorial and I'm experimenting with lookup tables - a Movie table and a MovieStarRatingTable.
This is my Index Page:
@page "/movies"
@rendermode ...
1
vote
1
answer
109
views
Mulesoft Dataweave use a variable as item in a selection at a JSON object
I want to do a selection on an item based on a (yaml) property in Dataweave. I have this code:
%dw 2.0
var testWithProperty = p('incoming.var')
// incoming.var refers to the value "resultSet&...
4
votes
0
answers
130
views
C#'s new "field" keyword: Are "volatile" properties now possible by calling "Volatile.Read(ref field)"?
Traditionally, using the volatile keyword on properties in C# was not possible. In other words, this was not possible:
// CS0106: The modifier 'volatile' is not valid for this item
public volatile int ...
-3
votes
1
answer
68
views
Dynamically created Python properties not invoking getters and getters
My code dynamically generates properties and the classes to contain them. The code creates immutably-typed properties such that assignments to them are automatically converted to the correct type, ...
0
votes
1
answer
67
views
Can I specify ant properties in Netbeans project configuration
In Apache Netbeans, is it possible to set an ant property in the Project Configuration?
I've got this line in my projects build.xml:
<property name="Create Installer" value="y" /...
0
votes
1
answer
46
views
How can you read modified class properties from another classes callback in javascript? [duplicate]
I have 2 classes with websockets. They should be used to send information from one to the other with the program as the intermediary. The WSS listens and can only have a single connection. I have a ...
0
votes
1
answer
151
views
Quarkus configuration with special characters
I'm trying to add this env variable to a quarkus project in the corresponding application.properties:
quarkus.kubernetes.remote-debug.enabled=true
quarkus.kubernetes.env.vars.JAVA_TOOL_OPTIONS=-...
0
votes
1
answer
64
views
WPF: Bind to custom dependency property in a style
I have a custom dependency property that I would like to bind to and pass into a value converter within a style. Here is the code:
<Window.Resources>
<local:Conv x:Key="MyConv&...
1
vote
1
answer
29
views
Can't Access GeoJSON Property Elements With D3 Using Mouseover - Returns Undefined
I've made a map of a number of survey sites using GeoJSON data, it all looks fine. I have also set a mouseover command that highlights the site when the mouse is over it.
However, I'm trying to create ...
0
votes
1
answer
73
views
Properties file to map in Spring 6
I have a Prop file like this
abc.name = John
abc.id = 1234
abc.dep = sales
bac.name = Jen
bac.id = 3422
bac.dep = marketing
Now I need to convert it to a map where keys will be abc, bac and the ...
0
votes
1
answer
41
views
PyTorch custom module classes with property sub-modules
I have a nn.Module subclass with a property which is also a module, but setting a new value does not work.
I realize nn.Module overrides __setattr__ and therefore a lot of usual Python attribute ...
0
votes
1
answer
50
views
why target properties are not populated from the properties of dependancies
CMake documentation states the following:
Usage requirements are propagated by reading the INTERFACE_ variants of target properties from dependencies and appending the values to the non-INTERFACE_ ...
0
votes
1
answer
134
views
How can I test Properties class without @SpringBootTest
I want to test Properties class without @SpringBootTest Annotation.
But it doesn't work.
How can I fix it?
I'm using Kotlin, Spring Boot 2.7.18
@ActiveProfiles("test")
@ExtendWith(...
0
votes
1
answer
202
views
Is there a way to declare an object property without initializing it?
A.S.: Object property order in JS is a very complicated topic. For my intents and purposes, only insertion order matters.
TL;DR: Is there a way to declare an object property in JavaScript without ...
0
votes
1
answer
270
views
I have a problem with the Debug Option 'Run64BitRuntime'—it is always set to True, and I can't change it to False
the value of Run64BitRuntime is disabled,
can anyone help me make this value editable
propertiesDeguggingScreenshotRun64BitRuntime
I tried adding "<Run64BitRuntime>False</Run64BitRuntime&...
-3
votes
2
answers
136
views
Set object property values based on another property instance to support save and undo operations
I have two instances of a class where I want to replace all values in one instance with those of another instance to implement save or undo functionality.
In the following example selectedMessage ...
3
votes
1
answer
38
views
Kotlin Class property value not showing up
I have defined a Class and assigned it a value, but when I try to access the value I get an @ followed by a string of hex digits. I can find out nothing in the official Kotlin documentation or online. ...
0
votes
0
answers
53
views
How to add properties to a manual trigger
How do i add properties to a message sent through "Manual" trigger? just like when a message is sent through servicebus trigger.
I can add Body and Property parameter but the content of the ...
2
votes
2
answers
126
views
Accessing a static property in a generic interface [duplicate]
I created a generic interface that has a static property, and yet the classes that implement that interface do not seem to have access to the property or expose it to other code.
For example, the code ...
0
votes
2
answers
80
views
cannot access own properties in javascript constructor
I have a base class and another that extends it, how can I access fields in the constructor?
class BaseModel {
constructor() {
console.log('no fields :(')
console.log(this.fields)
...
0
votes
0
answers
91
views
How can I upload property title to Idealista using API
I've to send property to idealista. According to idealista documentation https://feeds.idealista.com/v6/specs/properties.html I only found node (object key) to add description.
"descriptionText&...
1
vote
0
answers
88
views
Is there way to read the property from application.yml in polymorphic way?
I want to have following configuration in my application.yaml file:
root:
config:
role1:
filter:
type:
or:
- type1
- type2
role2:
...
0
votes
0
answers
69
views
Finding available objects in a command to parse to where-object
My apologies if this has been asked elsewhere. I cannot find any answer and am beginning to suspect I am looking at this incorrectly.
I have been using PowerShell for some years, but have not really ...
0
votes
1
answer
164
views
How to add properties to a property?
I have a Pojo with various properties, such as
class Book {
public String title;
}
(Getters and setters left out for brevity.)
Now I want to have properties for such properties, e.g. "this ...
1
vote
1
answer
38
views
ERROR TypeError: Cannot read properties of undefined (reading 'companyForm')
I'm trying to fetch data like boolean isCompany and Strings companyName and nip from users table from backend and set it as default in fields in the form. All other data are patched correctly. There ...
0
votes
0
answers
77
views
How to get the name=value pairs of all loaded properties files in a SpringBoot application
I work with a SpringBoot application which has a lot of .properties files in several different directories. The directories are listed using:
-Dspring.config.additional-location= and then within those,...
0
votes
2
answers
80
views
Is it possible to obtain the name of a variable from the method in which it is a ref argument?
I have two methods, where one of the parameters is referenced from the first to the second.
public double myFirstDouble = 1;
public double mySecondDouble = 2;
public double Calculate()
{
// do ...