Questions tagged [redefine]
101 questions
2
votes
1 answer
Is it possible to change the provider used by the standard jsr-353 api?
I am using the JSON JSR-353 api processor (jar javax.json-api-1.0.jar) to parse JSON files (using the streaming approach) and I added the JAR "javax.json-1.0.4.jar" that contains the default provider "org.glassfish.json.JsonProviderImpl" (without…

maher.belkh
- 473
- 2
- 7
- 21
2
votes
2 answers
Override a data member in a C++ derived class
I have an doubt, with C++ redefinition. I assign memory in Derived class, so I need that this memory is reserved in Base class. So, I need considered that the attibute in the Base class is the same that the attribute in the Derived class, and I…

user3480234
- 65
- 1
- 5
2
votes
5 answers
How to add or redefine operator in C?
I debug one code some hours and finally found that it uses != operator while my eyes scanning at code reads it as =. I always use <> operator in Pascal many years before. Now I must write and debug in C to make code reusable by community. So I tried…

user2223633
- 151
- 1
- 1
- 10
2
votes
2 answers
Prolog reassigning operators
I'm new to prolog and I'm trying to reassign operators in prolog by changing their precedence. I'm running into 4 errors for the following:
:-op(1000,yf,+). %unary plus%
:-op(1000,yf,-). %unary minus%
:-op(750,yfx,"%"). %modulo%
The first…

pauliwago
- 6,373
- 11
- 42
- 52
2
votes
2 answers
Nagios advanced Configuration - changing contact_groups after defined by hostgroups
is it possible to set an default contact_group in hostsgroup and modify (redefine) this contact_group later in the service. Or by another way.
Background: We use nagios to monitor near 100 Hosts and near 1000 services. For easy configuration we…

TimCgn74
- 43
- 2
- 7
1
vote
3 answers
jquery / javascript Redefine function
Since I started this new webshop for a friend to launch, which still in progress,
I'm using the so called "jQuery fixedScroll"..
Project online: http://www.merkversterkers.com/klanten/fragma/index.php?p=shop
Everything is fine until this..
When I'm…

Jayr
- 592
- 1
- 3
- 14
1
vote
1 answer
DOMParser: Can we make it cry less about multiply defined attributes?
"Be liberal in what you accept, and conservative in what you send." -Jon Postel
Right now I'm using the chrome browser, but I've experienced the same in the past with Firefox.
JS code like...
(new DOMParser).parseFromString("

Harold
- 1,584
- 1
- 12
- 20
1
vote
1 answer
How to redefine XML Schema type without redefine?
This is a continuation question to my previous question.
I have XML files and XML Schema provided by several different third parties. For some mysterious reasons Oracle requires an Oracle specific annotation to be able to validate xs:dateTime with…

user272735
- 10,473
- 9
- 65
- 96
1
vote
1 answer
Redefining variable inside the loop python
Using this code,
import numpy as np
import pandas as pd
df = pd.DataFrame ({'Date':['2000-01-01', '2000-02-01', '2000-03-01',
'2000-01-01', '2000-02-01', '2000-03-01','2000-04-01'
…

Yelena
- 189
- 1
- 2
- 13
1
vote
3 answers
I am looking to define two library with different names that use the same code
I have a c++ library which has an function called ExampleFunction(). This function is documented and is already in use. Unfortunately, the style of the library requires this function to be called exampleFunction() {initial letter is lowercase}.
I…

SV-Zanshin
- 13
- 2
1
vote
1 answer
How to restrict an any type inside a choice group in XML schema?
I want to redefine/restrict a complex type from the Oasis XML DSig schema.
xmldsig-core-schema.xsd

phoeller
- 58
- 1
- 10
1
vote
2 answers
How to redefine Scheme/Racket fundamental forms?
Racket has built-in fundamental form 2-arm if, but it doesn't have the word else, so I want to add the else word to it.
This code works:
(require syntax/parse/define)
(define-syntax-rule (myif Cond Form1 else Form2)
(if Cond Form1 Form2)
)
(myif…

Dee
- 7,455
- 6
- 36
- 70
1
vote
2 answers
Shadowing (redefining) symbol in commmon-lisp package ends up with errors
I found out that my package has a problem shadowing delete from the common-lisp package. I have tried various types of shadowing, but none of them worked for me. I guess I'm using it wrong, but still can't make it to work.
I have shortened the code…

dyouteotyi
- 27
- 4
1
vote
1 answer
redefining css overflow?
My main div .container is set to overflow:hidden; to maintain 100% height, it nests all content divs except for my header and footer. However inside is my sidebar which contains things that need to overflow out and redefining a child div doesn't…

Courtzie
- 23
- 4
1
vote
0 answers
svcutil error: 'SchemaLocation' must successfully resolve if contains any child other than
I want to generate a proxy class (C#) from a wsdl and some xsd files. The wsdl and the xsd files are all located in the same folder on my disk.
The command I'm issuing is:
svcutil.exe AuthenticateAndGetAssertionsSOAP12v2.wsdl .xsd /t:code /l:cs…

FandangoOnCore
- 269
- 2
- 9