53,967
questions
-1
votes
0
answers
14
views
Comparing Variable Name to User Input
I am currently coding an ASCII art based Battle Ships game and am in the process of adding a map to show the user where on the grid they have fired and where they have hit or missed a target. To do ...
0
votes
0
answers
26
views
Multiple eCharts graphs in one page and data mapping / [ECharts] `setOption` should not be called during main process
I'm trying to put multiple charts of eCharts in one page of only one type with series like (type: 'line') but datas should be formatted according to different parameters for each graph.
For a single ...
0
votes
0
answers
10
views
Can we include post index variables in a logistics regression
Can we include post index event in logistic regression if teh event is before the end point?
I have to do a regression to understand which patients stay on medication. I have taken the index date as ...
-2
votes
0
answers
44
views
Why is PHP showing the variable $greeting literally instead of processing it in my view? [closed]
I'm working on a CodeIgniter 4 project and using a custom template library to manage my views. I’m encountering an issue where PHP seems to display the variable name $greeting literally instead of ...
0
votes
1
answer
31
views
Inserting JSONB of a variable into table with Psycopg2 (Python to Postgres)
My task is to get JSON-Data from pokeapi and put it in a table on a pg4e-server (postgres for everybody) with psycopg2.
It works despite I am not able to put the JSON-data from python into the JSONB ...
-1
votes
2
answers
82
views
Python executing print statements inside false ifs [closed]
salt = "Salt and Vinegar"
bland = "Saltenes"
sweet = "Chocolate"
spicy = "Takis"
sour = "Sour Patch Kids"
q1 = print(input("Do you want a bland ...
0
votes
2
answers
89
views
How to split a column into two columns to separate two values in a cell when some cells don't contain two values to split using dplyr in R
Issue
I want to split a column named 'Date' in my data frame into two columns called 'Date' and 'Survey_Number'
The column 'Date' either contains one date '08/04/2012' or a date and survey number '24/...
2
votes
2
answers
75
views
Recursion - Not Returning Values as Expected
I'm currently writing a program to return all additions to a number subtracted from itself (For example, if 3 were the number, the output should be 6 (3+2+1). Essentially, I'm trying to have the ...
-2
votes
0
answers
41
views
CSS :root not set variable [closed]
I have the CSS file with :root where I set the colors for my classes. But I have problem with init one of variables.
Check the code above.
I have this CSS
:root {
--button-color: #eb2c33;
--...
-3
votes
0
answers
30
views
How do we register same variable for multiple when conditions in ansible [closed]
Ansible parent playbook prints variable {{ regularfiles.stdout_lines }} and errors as below.
fatal: [10.237.68.108]: FAILED! => {"msg": "The task includes an option with an undefined ...
0
votes
0
answers
9
views
How to replace placeholder with hash(remote_addr) and serve file over http?
I need to serve the only static file on webserver, replacing the placeholder with $value with some conditions.
$value is decimal or hexadecimal text string (ex, abba, e1ee7, 01023)
$value is derived ...
0
votes
1
answer
41
views
How to do something every time before initializing a variable also if not declared in a Class object
I'm trying to undestand how to do something every time a PHP variable also if not declared it's initialized in a Class.
So after reading something on stackoverflow I stumbled upon the magic method ...
0
votes
0
answers
28
views
How to copy variable from one collection to another collection in Bruno
Is there any way to copy the variable from one collection to another collection in Bruno.
Lets say i have one request for token and i want to use that token in another collection.
#bruno #variable
0
votes
1
answer
21
views
How to update declared 'global variable' inside nested WHILE and FOR loops
In a Snowflake stored procedure,
I declared a 'global variable' inside the DECLARE block
then tried to update the value of the 'global variable' in nested WHILE and FOR loops inside the BEGIN block
...
2
votes
1
answer
37
views
How can I have a variable sample time for logging data in simulink?
I have a model in simulink which controls a real time application. I have a predefined testplan, which is basically a table, which is processed line by line with a stateflow chart. In some of the ...