1,546 questions
0
votes
1
answer
62
views
TYPO3 tx_news add 'random' to the 'sort by' list setting
In a v12 TYPO3 site running EXT:news 12.3.0 I'd like to display a random selection of news articles, maintaining other chosen restraints (as limit to categories, respect top news etc.).
Best practice ...
0
votes
0
answers
56
views
Delphi Extending a set with custom values [duplicate]
I'm looking for a way to extend the tFieldType with my own custom types.
I've tried
type
pSetExtendedFieldTypes = (ftAlpha, ftAlphaNumeric, ftNumeric);
pSetNativeFieldTypes = tFieldType;
pSetDataTypes ...
1
vote
1
answer
524
views
Tailwind v4 plugin configuration: how to override 65ch max-width in Tailwind CSS Typography
I am facing the exact same issue as the one described in Override 65ch max-width in Tailwind CSS Typography, only in the recently published v4 of Tailwind CSS.
This new version has fully changed the ...
4
votes
1
answer
81
views
In ruby, custom method does not work on File builtin class
I want to create a custom method on Object class and Array class.
It works perfectly with array of Integer, Strings, etc. but not for File.
Weird!
class Object
def foo
puts("Object#...
0
votes
1
answer
90
views
Why does angular base component html elements not recognize changes to data?
what am i missing here? This is a simplified example of creating an Angular 18 base component and a heir component extending it. Both are standalone. All seems fine in that the heir component sees the ...
0
votes
1
answer
86
views
Adding additional fields to TYPO3 extension seminars
I try to add additional fields to the extension seminars (5.7.0) in TYPO3 10.4.34 but they don't show up in the single view in frontend.
What I did so far:
I created the extension my_seminar with the ...
0
votes
1
answer
57
views
How do I add a new function to all numbers in MiniScript?
In Miniscript, when working with Sprites, I find I have to convert radians to degrees and degrees to radians a lot. In most examples, one sees this as varDegrees*pi/180 and varRadians*180/pi. Fine, ...
1
vote
1
answer
66
views
Overloading Set in Swift
Some background
I am very new to Swift and MacOS and trying to learn the Swift way to do things. This started because I realized that tuples are not hashable so I rolled my own:
struct XY: Hashable
{
...
0
votes
0
answers
51
views
Extend System.Windows.Controls.Button
Is it possible to extend a System.Windows.Controls.Button without creating a custom control?
What I want to do is add a DependencyProperty (ButtonStyle) to a standard button where I can reuse the ...
1
vote
1
answer
62
views
Can props be passed into tailwindcss classes?
What I'm trying to do - create a reusable component that passes values into an extended background image class.
The issue - the background image is not appearing until after I first run the jsx with ...
0
votes
2
answers
74
views
Is there a way to call method from an extended class in a interface default method?
I got like 10 classes that should implement an interface.
Those classes also extend a type of another class, either directly or as subextended class. I cannot change those classes i extend, because ...
1
vote
1
answer
46
views
PHP CURL extended Basic Access Authentication Header
how can I combine ApiKey with Basic Authentication?
The API requires to pass ApiKeyby extending the Basic Auth Headers.
Actualy pass 2 more headers in basic auth (apiVersion & apiKey)
The manual ...
3
votes
0
answers
379
views
Lexical Editor: DecoratorNode in vanilla js
How do you handle decorator node output in vanilla js? It looks like the decorate method of thevDecoratorNode Class is for rendering React components. Is the decorate() method required to extend the ...
0
votes
0
answers
33
views
Does basic Python have any equivalent to extending Django templates?
What I mean is that with Django templates, you can create a quite long file A, have a couple of "block" elements in it that can be extended in other files, and then you can create files B ...
-2
votes
1
answer
132
views
Getting methods from a class that extends another class [closed]
I have a class that extends another class. Depending on a user's input, if the input "A" then the class needs to be a subclassA, but if they input "B" it will be a subclassB. I ...