Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
5 replies
89 views

I wonder if using the [[assume]] attribute can have negative effects on my code, even if the expressions inside are always true. In my code, I defined the following macro: #ifdef DEBUG #include &...
PlsHelp's user avatar
  • 337
0 votes
2 answers
108 views

Use case: I want to write a JsonConverter for a generic type like this, but I cannot apply it to the type itself: public class EditingModelConverter<T> : JsonConverter<EditingModel<T>&...
Luke Vo's user avatar
  • 21.6k
1 vote
0 answers
26 views

I have a soap service reference file that has MessageContractAttribute. I need to set the WrapperNamespace from appsettings depending on the environment. [System.ServiceModel.MessageContractAttribute(...
user19045506's user avatar
0 votes
1 answer
75 views

<span class="SpellingError SCXO166867203 BCX8" style="margin:0px;padding:0px;background-repeat:repeat-x;background-position:left bottom;">bv</span><span class="...
Retroshift's user avatar
3 votes
4 answers
94 views

Let's say I have a python file test.py that looks like this: class MyFirstClass(): prop=3 class MySecondClass(): prop1 = 0. prop2 = MyFirstClass() Then I can run this and it works: from ...
Ben's user avatar
  • 539
0 votes
0 answers
34 views

I have netCDF files of oceanographic data processed in Python, that I'd like to update the global attributes of (i.e., add the same attributes to a bunch of files). Tried doing it in Xarray per their ...
Kurt's user avatar
  • 1
0 votes
1 answer
39 views

I've been trying to use a python tool called WindowsDowndate from github (for educational purposes, I've been given the task to demonstrate some Windows exploit) but running the code just does not ...
oz hagevermeleh's user avatar
0 votes
1 answer
55 views

Is it possible to applay the contenteditable attribute to selected columns in an HTML table? According to https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/col and https://...
Manngo's user avatar
  • 17k
4 votes
2 answers
82 views

Microsoft docs mention that if I apply the ValidateScript attribute to a collection, it will evaluate each element of the collection: If this attribute is applied to a collection, each element in the ...
Tilman Koester's user avatar
1 vote
1 answer
64 views

Using Saxon parser freebie. This is a snip of a larger XML file. <osmChange> <modify> <node id="28377390"> <tag k="name" v="Holywell"/>...
DaveF's user avatar
  • 285
0 votes
0 answers
83 views

If one wishes to sanitize HTML input, he has to use a library like HtmlSanitizer. Example: var sanitizer = new HtmlSanitizer(); var sanitized = sanitizer.Sanitize(model.htmlInput); Is it possible to ...
thran's user avatar
  • 156
0 votes
3 answers
83 views

I occassionally receive: Error Processing Payment We're sorry, we can't complete your payment at this time. Please try again later. This error occurs when being sent to PayPal, so no user interaction ...
Brian CM's user avatar
0 votes
1 answer
218 views

I have some JS which needs to effect some styling of an entire rendered HTML document. What I current use is the following CSS: [myattr="true"] { direction: rtl; } [myattr="false"]...
einpoklum's user avatar
  • 137k
1 vote
1 answer
74 views

EDIT This code contains several bugs, see jsbueno's answer below for a correct version I would like to create read-only attributes that dynamically retrieve values from an internal dictionary. I have ...
peich's user avatar
  • 33
0 votes
1 answer
41 views

How can the name attribute be used if a details element is inside of a shadow DOM? When a name is set, multiple dialogs are supposed to be grouped, which allows them to be opened exclusively from each ...
ALegendsTale's user avatar
0 votes
1 answer
41 views

if format == 'mp3': download_url = yt_video.get_audio_url() elif format == 'mp4': download_url = yt_video.get_video_url() here is the code, when I run it I get this error: Download error: ...
rights4a's user avatar
1 vote
0 answers
50 views

When importing from Printify service to Woocommerse, the variations in attributes do not match color, size and price. I transferred attributes to global and variations are posted in a scatter. Here is ...
Юрий Ришко's user avatar
0 votes
1 answer
224 views

I'm using Microsoft Visual Studio 2022 Community edition. I want to create two executables from the same project using conditional attributes. Example: using System; public class MyClass { ...
Rouge a's user avatar
  • 25
0 votes
2 answers
87 views

I'm trying to change the "costCenter" attribute. I noticed in the Schema the description was originally "Cost Center". I thought maybe the space was an issue so changed it to &...
Travis's user avatar
  • 3
0 votes
1 answer
92 views

I am working on a program I wrote a while ago and have come across something I can't figure out why I did it. __fortify_function void DoLog(const char* format,...) As suggested by the name the ...
epilitimus's user avatar
2 votes
0 answers
182 views

Recently C23 added two new attributes: unsequenced and reproducible, which are now supported by GCC alongside the existing pure and const. I am slightly confused by the exact differences between all ...
Anon's user avatar
  • 381
1 vote
1 answer
47 views

A LeetCode problem which is about linked lists that goes with this structure: # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = ...
Yanal Nasir's user avatar
0 votes
0 answers
88 views

According to Camel's doc the Bean component has a parameters query parameter. If I understand Parameter binding correctly this works with bean handler methods only, right? Now, with a class: class ...
Gerold Broser's user avatar
1 vote
1 answer
58 views

I have a class that represents XML element: [System.SerializableAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")][System.Xml.Serialization.XmlTypeAttribute(AnonymousType ...
Maksym Kuzmych's user avatar
0 votes
1 answer
85 views

I want to be able to call a static method of a class (or classmethod) to only get the attributes of that class. By the attributes of the class, I mean the ones that are set in the constructor of the ...
Emke's user avatar
  • 21

1
2 3 4 5
263