Questions tagged [predefined-variables]

59 questions
0
votes
3 answers

How do I get the name of a python definition

it's possible to get in python 2.7.3 the name of a definition like this: def Newname(self): print name_of_def > "Newname" Thx, pux
0
votes
1 answer

Unable to access a predefined variable

Hello everyone, I was wondering if there any way to access a predefined variable like this.. define("EVENT_LOG", "../app_logs/log.log"); function Log($string) { $fileHandler = fopen( constant("EVENT_LOG"), 'w') or die('sCannot open file: …
Wracker
  • 589
  • 10
  • 32
0
votes
1 answer

Angular ng-model filter with a predefined word

From the angular example page I've tried this example and works Search: But…
Richard
  • 9
  • 4
0
votes
2 answers

use of php $row variable

Is $row a predefined variable in php (or does it have some other built-in functionality)? I have several times seen it used without prior reference in the code, but haven't found any documentation or explanation about it yet.
drenl
  • 1,321
  • 4
  • 18
  • 32
0
votes
1 answer

ExtJs cannot find predefined Store

There is a defined store in a.js Ext.define('Prg.ds.activeAdCamps', { extend: 'Ext.data.Store', model : basicModel, proxy: { type: 'ajax', actionMethods: {create :'POST',read:'POST',update:'POST',destroy:'POST'}, url:…
efirat
  • 3,679
  • 2
  • 39
  • 43
0
votes
4 answers

PHP: Declaration of arguments in function parameters

First of all, I can't recall the name of this process, but it looks something like this: function test($alter = FALSE){ //do stuff return $alter; } Making $alter = FALSE right in the function declaration What is that called? How does this…
Bobby S
  • 4,006
  • 9
  • 42
  • 61
-1
votes
1 answer

python - decode an array of data into predefine value

I am new to python. I would like to ask how to decode an array of data in python, for example [ 1 2 3 4 5 6 7 8 9 10 4 3 2 4 11 12 13 14 3 2 1 3] and I wanted the output to be like: if data = 1, data become predefined value A if data = 2, data…
-1
votes
1 answer

C++ Access violation reading location 0xFFFFFFFFFFFFFFFF when using __func__ identifier

I am using Visual Studio 2017 and I set the project to use ISO C++14 Standard under C/C++->Languages The debugger cannot recognize __func__ predefined identifier and it crashes if I try to use it as a string with error: : Access violation reading…
Mich
  • 3,188
  • 4
  • 37
  • 85
-1
votes
2 answers

How do I restrict passed variable to specific values in python?

I am writing the script where I pass values with CLI through argparse module. I am wondering if this is possible to restrict variable to hold pre-defined values, to avoid user mistake. It is not the type restriction, values are consists of letters…
-1
votes
2 answers

How can I create a data frame with the number of columns pre-defined in a parameter?

I am trying to create a data frame with predefined columns and to be able to populate the columns accordingly. I have the following code that creates a data frame with 3 identical columns, initially populated with NAs and then further filled…
Qaribbean
  • 178
  • 2
  • 3
  • 17
-2
votes
1 answer

Where can I get a complete list of variables that PHP automatically makes available to my script by looking at the output of the phpinfo() function?

I'm using PHP 7.2.3 on my machine that runs on Windows 10. I've installed PHP using latest version of XAMPP. I come across following text from PHP Manual : $_SERVER is just one variable that PHP automatically makes available to you. A list can be…
PHPLover
  • 1
  • 51
  • 158
  • 311
-2
votes
1 answer

Using defined name with Dates for pivot table does not work

So I want to create a Pivot Table from some data in Excel. In the first column I have Dates in format dd/mm/yyyy and the other 4 columns are text. I have a dynamic range called DynamicData that refers to all the data (it gets it well). The problem…
-2
votes
1 answer

How to pass user defined variable of JMeter to Javascript?

I have following javascript in eclipse: package print_first_fifteen; public class PrintText { public static void main(String[] args) { int i; char var; for (i=1; i<=var ; i++) System.out.println(i); } } I have defined char…
-3
votes
1 answer

How to check and extract words from url

Documentation for Go's built-in regex pkg is here: https://golang.org/pkg/regexp/ Regex tester in Go here: https://regoio.herokuapp.com I have a list of predefined words: christmas, santa, tree ( -> the order here is important. Check for words from…
Mr. B
  • 1
  • 2
1 2 3
4
NamePhone