Questions tagged [redefine]

101 questions
1
vote
1 answer

sass: overwrite one var with another

We've got our sass variables file set up like scss\variables\_custom_variables.scss. Which, of course contains things like $link-color: $00f; Then put to use in our sass files set up like this one for navigation as scss\main\_main_nav.scss where…
1
vote
3 answers

Faster to reuse a variable defined in a common scope or redefine it in each inner scope?

C++ specifically, if it matters, but I imagine the answer lies in assembly code somehow. If we have multiple blocks in a common scope (say, a function) which each use a variable of the same type, is it faster to define the variable in the common…
Innominate
  • 121
  • 1
  • 6
1
vote
1 answer

segmentation fault (core dump) c++

I've been writing code for my class assignment and when I rut it in terminal with g++ command , it gives me segmentation fault. The code is big but first part, when I insert elements of map, it works ( because once it wrote the command and then…
1
vote
2 answers

Redefine / resize C array in Objective C?

I have a C array in Objective C defined as follows: id keysArray; Then in an if block, i would like to redefine the array based on a condition: if (somethingIsTrue){ id keysArray[4][3]; } else { id keysArray[6][1]; } Then outside of the if…
joec
  • 3,533
  • 10
  • 60
  • 89
1
vote
5 answers

timed display of div

all i need is some client side code jQuery or JS that will alter the divs style after X seconds like visibility : hidden; OR max-height : 50px; or switch the class \ id of the DIV ( preferred )
Moon
  • 19,518
  • 56
  • 138
  • 200
1
vote
0 answers

convert a Class object to byte[] before redefine

I have Sample.class file and Sample Class object at runtime, Then I modify a method body in A.class and redefine it with redefineClasses. how can I get the byte array(in a class file format) that represents the original Sample Class object before…
nzomkxia
  • 1,219
  • 4
  • 16
  • 35
1
vote
1 answer

How to redefine a property in C# through interface inheritance?

I have an interface 'IBase' that specifies a nullable int. A later interface 'IDerived' hides the nullable int and 'redefines' it as non-nullable. interface IBase { int? Redefineable { get; set; } } interface IDerived : IBase { new int…
MarkB
  • 174
  • 14
1
vote
1 answer

cvc-elt.1: Cannot find the declaration of element 'NewIssue'

I am trying to validate an in-memory xml document before writing it into a file. I found many similar questions to my problem, but there is a difference here, I would think so. Multiple schemas are defined for this validation and the "redefine"…
bstefano
  • 11
  • 4
1
vote
2 answers

Flex - How can I define a function in one component from another?

I'm a complete Flex/Flash noob, running Adobe Flash Builder 4 Beta 2. I have a main component that needs to be able to call several popups, each mostly the same except for one function and a few labels. Obviously, I'd prefer to be able to define…
Travesty3
  • 14,351
  • 6
  • 61
  • 98
1
vote
1 answer

Is it possible in an XSD to xs:redefine the xs:complexType element to require the type attribute?

Goals: Create an XSD where the "type" attribute is required for every xs:element defined in the schema Be able to re-use the redefined http://www.w3.org/2001/XMLSchema in other schemas to force all defined xs:element(s) to require the "type"…
teckno.query
  • 90
  • 1
  • 7
1
vote
5 answers

Change the value of an integer in java

I'm starting out programming with java and I'd like to make some games and various other things which require changing variables, especially integers. Let me give you an example. int Score = 0; if(coinCollected = 1){ int Score = 1 …
Josh Hartigan
  • 11
  • 1
  • 1
  • 3
1
vote
1 answer

Is it possible to redefine subroutines to be localized for a part of the code?

Is it possible to redefine the _function_used_by_exported_function only for the exported_function call in the second_routine? #!/usr/bin/env perl use warnings; use strict; use Needed::Module qw(exported_function); sub first_routine { return…
sid_com
  • 24,137
  • 26
  • 96
  • 187
1
vote
0 answers

MOXy jaxb binding error for redefine element

Can any one help me ? In my project, I need to pares some schema files, and need to generate xml files base on these schemas. Now ,I want to user MOXy to generate empty xml files base on these schemas dynamicly.But exception happened. Internal…
husanhong
  • 15
  • 6
1
vote
2 answers

How to redefine the "volume" button on android

I'd like to redefine the "volume" button on an android phone. For example,When I press the increase or decrease, the volume will not be change, but only to print a word.
1
vote
3 answers

Undefine PHP defines?

I'm working on converting an old define()-based language/translation system to a more flexible one (probably JSON-based, but it's still open). As part of this conversion, I will need to convert from 42 .php files with several thousand strings each…
Martijn
  • 3,696
  • 2
  • 38
  • 64