Questions tagged [attributes]

The attributes tag should be used for any issues relating to a property of an object, element, or file, etc.

Filter by
Sorted by
Tagged with
1 vote
1 answer
21 views

Best Way to Debug html5lib.html5parser.ParseError: Unexpected character after attribute value"?

I am currently working on a personal project and utilizing the chessdotcom Public API Package. I am currently able to store in a variable the PGN from the daily puzzle (Portable Game Notation) which ...
Pandyy21's user avatar
0 votes
1 answer
29 views

Input attribute doesn't reflect changes

I am currently working on a blockchain based web app. I have a number type input field which has a max value attribute. I want to dynamically fetch the number of candidates and set this number as the ...
Dhruv's user avatar
  • 3
-1 votes
1 answer
39 views

How can I dynamically update the content of a div element based on user input using JavaScript? [closed]

I'm working on a web project where users can input data, and I want to update a specific element on the page with the entered information dynamically. I've tried, but it's not working as expected. ...
ANUVINDH KRISHNA P B's user avatar
0 votes
0 answers
13 views

How do I assign co-ordinates to attribute table using QGIS?

I am working with the NSW marine habitat data see the link for all files. I am trying to export the attributes (habitat data) with the corresponding coordinates for the points along the coast. I want ...
Sharklady's user avatar
-2 votes
0 answers
9 views

Woocommerce Swatch

I would need to create a swatch-type attribute for the colors but associating sub-color groups, for example Black (Main Color) Light Grey, Deep black (child of black main color) Is there any ...
Armando's user avatar
  • 59
-1 votes
1 answer
27 views

HTML5 drop down option have to be by default

i m trying to do a HTML5 question in that i have to make a drop down option selected by default. i tried to use the attribute "required" and "default"... bt still not working.d &...
Shalini Singh's user avatar
0 votes
0 answers
11 views

Wordpress Gutenberg : What is the "Block Name" setting in the inspector

Does anyone know the purpose of the "Block Name" parameter in the Gutenberg Inspector? I don't understand what it's for, it's not saved in the database and I can't find any documentation ...
Aurélien's user avatar
0 votes
0 answers
16 views

How can i create element from values from an array [duplicate]

I want from an array to create element and specific an selected attribute with the values of the array. Lets say something like for each value to create an option to select element. I tried to fetch ...
Anny's user avatar
  • 1
0 votes
1 answer
32 views

MicroStrategy Prompt Answer Get Month

I am learning MicroStrategy and I am doing an exercise that I do not know how to do it. I have in a report several attributes, one of them is a date, and one metric. With this metric, I did derived ...
DatBigD's user avatar
  • 129
0 votes
2 answers
45 views

Is there a way to set attribute to sub objects in a class?

I would like to be able to do this: >>> obj = Example('hi', 'hello') >>> obj.a 'hi' >>> obj.sub_obj.b 'hello' I try this but I get AttributeError: 'dict' object has no ...
Ooker's user avatar
  • 2,190
0 votes
0 answers
13 views

(onClick attribute) it is not in the attribute box in Android Studio

How can this problem be solved? Also, there are many attributes for example (textColor, font, background, backgroundColor) that are not in the attribute box in Android Studio (https://i.stack.imgur....
Mustafa Hussein MJ's user avatar
1 vote
0 answers
34 views

AttributeError: module 'PIL.ImageTk' has no attribute 'PhotoImage', how to fix this?

I have written this so far: Its supposed to be showing a certain screan as i've tried to link an image that i have on pycharm. import PIL from tkinter import * from PIL import ImageTk, Image def ...
tomoko123's user avatar
0 votes
6 answers
142 views

How can I extract the "Compression" attribute from a jpeg file in Windows 10 using VBA (or PowerShell)?

I'm trying to extract the Compression attribute from several thousand jpeg files. How can I do this with either Excel VBA or PowerShell (or some other method)? Some users haven't used the correct ...
MBB70's user avatar
  • 377
0 votes
3 answers
43 views

PHPUnit: Running Tests that Use a Specific Attribute

I'm using the RequiresFunction attribute in a few of my tests. I want to pass arguments to phpunit that will run the tests with that attribute and the name of the required function (if possible). ...
Sonny's user avatar
  • 8,216
0 votes
0 answers
40 views

Tomcat mapperContextRootRedirectEnabled attribute is not working

Within Tomcat 9 I am trying to enable mapperContextRootRedirectEnabled. This is a common attributes within context.xml. https://tomcat.apache.org/tomcat-9.0-doc/config/context.html I found this ...
user22553624's user avatar
0 votes
0 answers
13 views

Magento 2 cron job catalog_product_attribute_value_synchronize

I am trying to work out what the cron job "catalog_product_attribute_value_synchronize" actually does. It seems to run the following class: "WebsiteAttributesSynchronizer" Doing ...
Shaun's user avatar
  • 1
0 votes
1 answer
45 views

Why does my function know a value of an attribute without a assignment rule? [closed]

I've started learning Python recently and got this code here: import math class Circle: def __init__(self, radius): self.radius = radius def area(self): return math.pi * self....
Lars Sk 's user avatar
0 votes
1 answer
35 views

How to wrap "SVG" element with background color around the text

I have this code of HTML <div class="bubble" id="bubble-1"> <svg xmlns="http://www.w3.org/2000/svg" width="285px" height="67" viewBox="0 0 50 67" fill="none"> <path fill-rule="...
Omri Developer's user avatar
0 votes
0 answers
46 views

zsh: unknown file attribute: 1

I can't call my def root (a, b, c) in my mac! I tried to run the file without the anaconda environment but gave the same error. If I write a simple code like print("oooo") the file runs but ...
Xkappa21's user avatar
0 votes
0 answers
18 views

Cert-Manager Controlled Cert Resource

With Cert-Manager using the flow of creating the Certs implicitly from Ingress apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: # add an annotation indicating the issuer to ...
404's user avatar
  • 227
0 votes
0 answers
17 views

Is there a way to search WooCommerce products by their attributes or acf fields?

I have a WooCommerce shop that sells auto parts. Each product is relevant to specific make/model/serial number. The make and model are easy, but I'm having trouble allowing my customers to search ...
Jason Valenzuela's user avatar
0 votes
0 answers
21 views

The Pytorch lightning finds no tuner in lr_find_results=trainer.tuner.lr_find

I'm working on using PyTorch Lightning to train a neural network with a DataLoader. I have installed PyTorch and PyTorch Lightning successfully. However, I am encountering an issue with the learning ...
Idea's user avatar
  • 1
-1 votes
0 answers
24 views

Attribute combination rules in WooCommerce

I'm building a WooCommerce webshop. I have a product with multiple variations out of 2 attributes: "Location" and "Version". Both are showing on the product page. But.. I want the ...
Ellen's user avatar
  • 1
0 votes
0 answers
51 views

__attribute__((weak)) function is'nt called even when there is no function overide it

I have 3 files, they are main.c, Test.c, Test.h. This is what in inside those main.c #include <stdio.h> #include <stdlib.h> #include"Test.h" int main() { test_function(); ...
Mr. Nothing's user avatar
1 vote
2 answers
51 views

Validating XML on XSD with element that has missing attribute

My issue was two-fold: when an attribute is missing, determine the line number and also what element the attribute is part of. The first part I resolved by adding the proper options to the XDocument ...
sinDizzy's user avatar
  • 1,322
0 votes
1 answer
32 views

Deserialize json into __dict__ has odd behaviour

in python 2.7.13, I have a class which in the __init__ does this: self.__dict__ = json.load(f, encoding='utf-8-sig') But when I run it on my PC, it act as expected: deserializing the json file ...
Patcha's user avatar
  • 1
-1 votes
1 answer
38 views

Issue with BaseX XQuery content:unable to add an attribute, and I don't know how to add tags, just know how to add values

PS- Please tell admins to enable more usability to review code indentation, the task was too rough, had to use a link and it forces a format when code formats are several ones, and i had to remove ...
Ruben Vela Nuñez's user avatar
-2 votes
0 answers
10 views

Passing Data From Spring GlobalFilter to Controller

New to spring and trying to replicate some of the functionality we have on our current TomCat Server with filters. On the legacy java code I check each request for a valid user specific JWT in a ...
Tri Dave's user avatar
0 votes
0 answers
16 views

Tool recommendation for data flow mapping on attribute level

I'm looking for a good way to document the data flow / mapping in our project. Basically we have a number of Input sources, where we get data from, either 3rd party services or our own web-frontend ...
dudedev's user avatar
  • 451
0 votes
0 answers
21 views

Attribute in junction table depends on the primary key [duplicate]

I have a junction table to set up a many-to-many relationship between properties and their policies The property_id and policy_id form the primary key. As an additional attribute I wish to store a ...
Gabi23's user avatar
  • 115
0 votes
1 answer
13 views

Can't retrieve attribute value from an XML element in jquery

I have xml that looks like this: <marker> <name>Ada County Jail</name> <adr>Boise</adr> <state>Idaho</state> <geo>43....
Ed S.'s user avatar
  • 79
-2 votes
0 answers
21 views

CSS alignment messed up whenever HTML document is viewed on a different device?

I need my website's presentation and structure via css alignment to be consistent throughout all devices and not messed up from device to device? I followed Youtube tutorials and coding camps' ...
Francis Mike Nathan's user avatar
0 votes
1 answer
50 views

In python selenium get_attribute('value') does not return None when attribute does not exist in web element

I have a textbox in a form and I want to know if its blank. get_attribute() should return None if the attribute does not exist, but it's returning nothing, blank, empty space. I want to check that the ...
charm2023's user avatar
0 votes
1 answer
40 views

How to find a CheckBox by a data-* Value in Javascript with or without Jquery

I have several CheckBoxes on an ASP.NET view. From a Javascript function I need to find the checkbox not by ID nor by NAME but by a value in a data-selection-productid attribute on the checkbox. The ...
Andy's user avatar
  • 77
0 votes
1 answer
72 views

Remove all attributes not in whitelist from all HTML tags

So, far I can only keep one attribute but I am trying to keep both class and id attributes left in the HTML tags Code: $string = '<div id="one-id" class="someClassName">Some ...
user7381822's user avatar
0 votes
0 answers
38 views

PYGIS: Creating new attribute table and adding values to it

I am working in pygis for QGIS and have a problem regarding the attribute table and its values. I can create the new attribute table just fine but cannot add any values to it. I am new to pygis and ...
janicans's user avatar
0 votes
1 answer
18 views

Create logic within DTD/XML

Due to my studies I'm learning about XML/DTD's. Now I've got an exercise in which I have to create an order. One point is, that I have 2 different types of customers. One student and one not student. ...
IamSebastn's user avatar
0 votes
0 answers
14 views

How do I join matching attributes of all child nodes in Freeplane parent node?

Freeplane files are XML and they apparently use groovy scripts, but I can't work out how to return an attribute (as a text string) using a formula in a parent node. The main help page is here: https://...
skeetastax's user avatar
  • 1,210
0 votes
1 answer
48 views

PHP Attribute Class not found error when trying to get new instance from ReflectionAttribute

I have this Attribute that I have created to control access level into my route methods. namespace Lrc\Buscrawler\Attribute; use Attribute; #[Attribute(Attribute::TARGET_METHOD)] class RouteAccess { ...
kalangaum's user avatar
0 votes
1 answer
66 views

From inside a python function, use a var representing the func object, to get the func's parameters and the values supplied

The first line of the code in the function, 'func', below is a print statement. It prints/generates the following sort of cross between a tuple and a dictionary, (to the right of the first equals sign)...
Marc B. Hankin's user avatar
0 votes
0 answers
19 views

Date attribute by JSF cross-field validation [duplicate]

I'm passing an attribute to another field's validator. JSF (Primefaces) <p:column> <p:calendar id="IncommingDate" ...
LEON DENIS's user avatar
0 votes
1 answer
29 views

python object attribute changing values

I was creating a grid (2 dimensional lists) of cell objects, in a nested loop. Immediately upon instantiating each cell, I have printed the values of their attributes. After exiting the loop, I loop ...
Ani's user avatar
  • 17
0 votes
2 answers
59 views

Change only the controller name in the route having an inherited Base Controller class in .NET 7

I'm implementing an ASP.NET Core 7 MVC web application. The controllers part is managed with a base class (which actually has the Route attribute which I am going to complete by adding the template on ...
Matteo Pietro Peru's user avatar
-1 votes
1 answer
140 views

Is it necessary to mark functions with the `inline(never)` attribute that are responsible for eliminating generic overhead?

Is this enough to prevent generic overhead at the cost of calling a function? Or is it necessary to specify #[inline(never)]? fn foo<T: Add<i32>>(a: i32, b: T) -> i32 { fn ...
Empty's user avatar
  • 25
0 votes
0 answers
16 views

network library with attributes fails: dims [product xx] do not match the length of object [x]

I struggeling with loading a network library(network) with attributes. In the following my subset of a dput: dput(edges[c(1:5,30:32),1:9]) structure(list(to = c(162L, 150L, 185L, 175L, 166L, 474L, ...
Sulz's user avatar
  • 347
0 votes
0 answers
23 views

Identify a single textView (by distinguish from others) in kotlin

I need to distinguish a single textView by the others, say in a group of four. Obviously the textView is never the same so I need to set programmatically an identifier (I used "tag" ...
genespos's user avatar
  • 3,255
0 votes
0 answers
42 views

Does flying-saucer-pdf-itext5 support the max-width attribute of the img?

I added an attribute max-width to the img tag. .half-img { max-width: 283px; } <table> <tr> <td class="table-top"> <div class="number&...
Cjsah's user avatar
  • 1
0 votes
0 answers
19 views

looking for a way to make woocommerce products custom attributes values searchable in front end search bar

I am currently building a woocommerce website for computer products and I have a problem where several attribute fields need to be custom due to the limitations of woocommerece not allowing for free ...
B-TechOffice's user avatar
0 votes
0 answers
22 views

How to change the Slug Link of an Attribute (pa_) in WooCommerce?

If u add informations in WooCommerce you get the "Additional Informations". I need to use them as a taxonomy to Filter my products. If i use them as a taxonomy they change to a "Link&...
Gabriel's user avatar
4 votes
1 answer
60 views

Is there a standard attribute for the names of the dimensions of an array? (eg 3D array -> 3 names)

[Edit: I think R itself suggests the answer; see below.] Suppose I have a 3D array such as myarray <- array(1:8, dim=c(2,2,2), dimnames=list(letters[1:2], letters[3:4], letters[5:6])) myarray ## , ,...
pglpm's user avatar
  • 568

1
2 3 4 5
262