Questions tagged [modifier]
347 questions
2
votes
1 answer
Typescript: Mapped type with exclude changes property modifiers
When using the Minus mapped type it seems to be removing modifiers from the properties. I think it is being caused by the Exclude type but I am not sure why.
I expected Minus to just remove the keys of U from T without changing the property…

Lionel Tay
- 1,274
- 2
- 16
- 28
2
votes
0 answers
Python: Arbitrary Class Modifier
While I managed to construct a manageable answer to my question:
class A(object):
def __init__(self, B, *args, **kwargs):
''' Modifies input class B, rendering it a super class of class A'''
_parent = {}
method_list =…

Vasilis Lemonidis
- 636
- 1
- 7
- 25
2
votes
0 answers
AppleScript: Can I send a keypress ignoring a pressed modifier?
I've run into a rather specific problem where I would like to send a key press while having a modifier pressed without the modifier pressed.
Basically, I press Option+F4 and want to send Command+F, not Command+Option+F.
Can it be done?

manavortex
- 31
- 5
2
votes
0 answers
How to use a shaderModifier to alter the color of specific triangles in a SCNGeometry
First, before I go on, I have read through: SceneKit painting on texture with texture coordinates which seems to suggest I'm on the right track.
I have a complex SCNGeometry representing a hexasphere. It's rendering really well, and with a full…

PKCLsoft
- 1,359
- 2
- 26
- 35
2
votes
0 answers
Adding custom textures to SceneKit shader modifiers
I'm trying to use a texture to modify a SCNPlane's vertex data. As per the documentation, and the WWDC 2013 slides, one simply needs to provide a SCNMaterialProperty using -setValue:forKey: on the plane or material. This works wonderfully, but only…

sbwilson
- 166
- 9
2
votes
1 answer
Protected access modifier use on Class's Constructor
I am clear with using private, default and public access modifiers on a public class's constructor.
If constructor is private, the class object can be created in that class only.
If constructor is default, the class object can be created in that…

ash
- 156
- 3
- 12
2
votes
0 answers
How to automatically add a static modifier to an extracted method that can be static in Eclipse for Java
I enabled the Warning Method can be static (in Preferences => Java => Compiler => Errors/Warnings) in Eclipse 4.4.2.
If I extract a method getPath with "Refactor=>Extract Method" (Alt+Shift+M) as shown in the following example, I get a warning…

Stefan
- 10,010
- 7
- 61
- 117
2
votes
1 answer
Smarty: Trim zeros from the end of string/float value
Need to format value, cutting zeros from the end, in this way:
3 => 3
3. => 3
3.0 => 3
3.00 => 3
3.000 => 3
3.009 => 3.009
3.003 => 3.003
3.01 => 3.01
3.10 => 3.1
3.16 => 3.16
Found these Smarty modifier plugin that will do…

BlueMark
- 962
- 4
- 23
- 41
2
votes
2 answers
modifiers for Java classes
I am trying to creating a customized JButton. I noticed that when I declare the class class MyButton extends JButton, it works ok. But Eclipse shows "illegal modifier" error when I changed the class name to private class MyButton or protect class…

stillAFanOfTheSimpsons
- 173
- 2
- 4
- 16
2
votes
2 answers
Unknown Modifier - preg_match_all
(.*?)<\/b>/#i";
preg_match_all($get, $filter, $result);
echo $result[0][0];
?>
While trying to work with these codes i get such an error like: "Unknown…

DanTeS9
- 35
- 1
- 8
2
votes
0 answers
Force AndEngine Modifiers to Start in JUnit
I'm trying to test my AndEngine code but can't get a MoveByModifier to start running in my Junit test.
Neither Engine, Scene, nor any Entity subclass seems to give an any methods to explicitly start modifiers, nor do the AndEngine examples ( ) seem…

Prime
- 4,081
- 9
- 47
- 64
2
votes
1 answer
Can you put multiple assignment in rescue modifier?
Suppose I have this :
item_one = Object.find(1) rescue item_one, value = [Object.first, true]
This actually does not work. It returns this :
syntax error, unexpected '=', expecting $end
Does anyone know how to syntactically put multiple assignment…

Trip
- 26,756
- 46
- 158
- 277
2
votes
3 answers
C# entry point class modifier
My question is about entry point in a C# program. I'm using VS 2010 and it automatically generates Program.cs file with program class:
class Program
{
...
static void Main(...)
...
}
My question is why this class is by default internal?…

TechInstinct
- 25
- 4
2
votes
3 answers
What is the best way to find all forms of a word?
If a user enters a form of the word "look" such as "looked" or "looking", how can I identify it as a modified version of the verb look? I imagine others have run into and have solved this problem before ...

itwasthewind
- 355
- 1
- 4
- 9
2
votes
3 answers
Modifier Key state
I have a tiny (rikiki) problem in SWT ...
I am making a small class extending org.eclipse.swt.widgets.Composite and which is supposed to be nested in an RCP app ...
In this small class I have widgets which are supposed to react to mouse or keyboard…

Ar3s
- 2,237
- 2
- 25
- 47