Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
53 views

I am very new to javascript, so help is much appreciated! On my website, I want to have seven photos that cycle on click. So every time the photo is clicked, it is replaced by the next photo in the ...
sjbake's user avatar
  • 1
1 vote
1 answer
147 views

I’m building a Google Apps Script library and I’d like to expose some constants as a nested object. var CONFIG = { LEVEL0: { LEVEL1_A: 'A', LEVEL1_B: 'B' } }; When I use this library in ...
kuba.jal's user avatar
0 votes
2 answers
87 views

i am trying to use a countback from a certain date, and want it to read something like (100d, 10hrs, 10sec). the countback does this fine, except it reads as (-100d, -10hrs, -10sec). is there a way to ...
amouru's user avatar
  • 17
1 vote
0 answers
80 views

I’m replicating Shapiro & Watson (1988) and need to impose the long-run restriction with a Givens rotation. The target identity is C_inf@B=C_inf(P@Q_total)=(C_inf@P)@Q_total=A@Q_total Yet my code ...
samuele ridolfi's user avatar
1 vote
1 answer
103 views

Variable declared with var and functions in script at global scope level, are a able to accessed with variable_name and window.*variable_name* . var foo = "10"; let bar= "20"; ...
sql_dummy's user avatar
  • 783
0 votes
0 answers
57 views

<script> let checked = <?php echo $row["restriction"] ?>; console.log(checked); </script> When I was using a JS variable with let to store a php value, this output ...
Hùng Vương Nguyễn's user avatar
0 votes
0 answers
120 views

I have built a hybrid model that combines a Vector Autoregressive (VAR) model and a Long Short-Term Memory (LSTM) network. The VAR model is used to capture linear dependencies between macroeconomic ...
Thashikala Mendis's user avatar
0 votes
1 answer
45 views

I am using the following code to conduct a SVAR estimation: data_q = pd.DataFrame({'GDP': GDP, 'CPI': CPI_q, 'Interest_rate': Interest_rate_q, ...
Oriol's user avatar
  • 11
1 vote
0 answers
43 views

I am using the following code to conduct a SVAR estimation but it keeps crashing, always the same kind of error: len(A_guess) != n_masked_a: TypeError: object of type 'int' has no len(). CAN ANYONE ...
Oriol's user avatar
  • 11
2 votes
1 answer
368 views

I use Rider. What I would like to do is to replace var with explicit type after using Reformat and cleanup code. For example, I have the following code snippet: var number = 1; I've set the following ...
Learner's user avatar
  • 675
2 votes
3 answers
170 views

The code below loops over an XmlNodeList and prints the text content in them. It works as expected: using System; using System.Threading.Tasks; using System.Xml; namespace cabinet; public class ...
Denis's user avatar
  • 227
0 votes
0 answers
29 views

I want to estimate a panel VAR model on a large set of data (130 companies, 6 variables, 2 identifiers over 10 years), so large I had to cut my sample by half to have enough memory to run the function....
Guillaume Brasseur's user avatar
3 votes
0 answers
50 views

Our codebase is Android, and it targets JDK 17. plugins { id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0") } java { toolchain { ...
Hounshell's user avatar
  • 5,469
1 vote
2 answers
125 views

all these code snippets run in nodejs. below are demo1.js, ps: run these code in nodejs rather than browser js engine // demo1.js var1 = 'var1'; // in nodejs or Chrome-V8 js engine, this line would ...
Lucas's user avatar
  • 65
1 vote
1 answer
98 views

I can't seem to reconcile these two observations: A 2D array (T[,]) can't be assigned to a variable of type IEnumerable<T> In foreach(var item in (T[,])array2d), the compiler knows that var is ...
hypehuman's user avatar
  • 1,387
0 votes
1 answer
65 views

I would like to plot when a condition, in either direction, is met and then only make the next plot when the condition is met in the opposite direction. My current code plots every time a condition is ...
user27501116's user avatar
3 votes
2 answers
61 views

It is possible to implement in C# something like this: var provider = options.isBinary ? new BinaryProvider() : new NonBinaryProvider() Both BinaryProvider and NonBinaryProvider implement IProvider&...
Anton Petrov's user avatar
0 votes
0 answers
62 views

I need to add +1 to each card clicked but Function result 3 as undefined why? what is wrong with my code? card2 and card3 function recive each variable inside each click function inside function ...
Otávio Barreto's user avatar
-1 votes
2 answers
71 views

I checked out the Java 10 option of "use local variable type inference" (JEP 286), but I think it is terrible to replace all type information with just the keyword var - was so much better ...
beagle's user avatar
  • 154
1 vote
1 answer
75 views

I'm pretty new to Ansible and I'm not sure how to get it right. To start with, I have implemented this dictionary var for an exemple. There is 2 values but it could be a greater number: tf_ETCD: 1: ...
brett's user avatar
  • 13
1 vote
0 answers
134 views

I have a Flutter Application that regularly sends me "messages" with Data. In my ViewModel I have the code to decode the data and in my ContentView I make an @State private var viewModel = ...
registrier rp's user avatar
0 votes
1 answer
97 views

I would like to know what means -z ${var+x} if [ -z ${VAR+x} ]; then echo "Variable VAR is unset." else echo "VAR = ${VAR}." I would like to understand in which case I ...
Marta 's user avatar
  • 29
1 vote
1 answer
46 views

I am successfully running caret::bagFDA() in R, but I cannot use the caret::varImp() function to identify the most important variables. The reproducible example is quite simple: library(tidyverse) ...
Rodrigo Nehara's user avatar
0 votes
1 answer
40 views

I'm using sass-rails gem and I try to use css variable like this : --h: 198 --l: 38% --c: hsl(var(--h), 100%, var(--l)) background-image: linear-gradient(to right, var(--c) 0%, #000 100%) ...
Matrix's user avatar
  • 3,395
0 votes
2 answers
118 views

Consider an example of a VARX model estimate in R, using MTS package: library(tidyverse) library(MTS) library(modelsummary) library(vars) library(stats) set.seed(10) ts1 <- rnorm(200, mean = 10, ...
Victor Hugo Schieck Terziani's user avatar
0 votes
1 answer
61 views

I am new here, but I checked other threads and have not found solution so far. I am trying to make a VAR model in R, it looks like this: library(vars) library(lmtest) # from loaded data I create ...
Filip Emmer's user avatar
0 votes
4 answers
62 views

<head> <script> var bgcolor = #ff0000 </script> </head> <body style="background-color: var(--bgcolor);"> </body> I want to make a JS function ...
fzytail's user avatar
0 votes
1 answer
61 views

I have a calculator built in Jquery, I would like to pass these numbers to my chart js program and have the chart dynamically adjust as new results show in the calculations, how would I do this with ...
Beep's user avatar
  • 2,843
0 votes
1 answer
125 views

I need help to escape quotes in jMeter! I've to put into a var some words with quotes, for example "dummy", so I've tried with: vars.put("example", '"dummy"') vars.put(&...
EmanueleAmbretti's user avatar
-2 votes
1 answer
30 views

I'm trying to make a square in a canvas that moves(Tetris), and I want to know if there's an alternative to making a independent fillRect. My line of thought is that I can make the fillRect() position ...
42HitchHikers's user avatar
-1 votes
1 answer
115 views

So I am a beginner at unity and am slowly making a game but, I ran into this problem and I can't seem to figure out how to solve it. You see I have several text Mesh Pro UGUI objects within a canvas ...
josh Sparks's user avatar
0 votes
0 answers
140 views

I'm starting to code with love2d, so I installed love2d with the love2d support extension, there is no problem running the code and it works perfectly (I can draw hello world and have it appear on a ...
Lautaro Ezequiel Coppa's user avatar
1 vote
1 answer
172 views

Scala noob here, but while learning about case classes, I see the members are by default read-only. However, if you add var, they become private; and there is no public access modifier. Any way to ...
mishar's user avatar
  • 455
0 votes
0 answers
45 views

I've trying to customise a script that normally triggers a GTM tag to populate a form's hidden field with a variable (session_url_campaign). Here is the script: <script> (function () { var value ...
Xavier Wallach's user avatar
-1 votes
2 answers
72 views

I need to get specific column which rows are depended on another column. Here is the raw example table, Affiliate Brand x17 B x17 B x17 B x17 B x17 B x17 B 1x2 B 1x2 F 1x2 F 1x2 B 1x2 F 1x2 B 1x2 F ...
Veli K's user avatar
  • 35
0 votes
3 answers
114 views

Something I can't understand : I got a function opening the same page <div id="page"> but with different contents depending the clicked button in menu: <nav> <button ...
Wolden's user avatar
  • 333
0 votes
0 answers
162 views

What is the difference between these 2 code snippets? One with the var works but the one with the type string gives an error.(use of unassigned variable error) Aren't they both unassigned until ...
Efe Belli's user avatar
-3 votes
1 answer
124 views

days since last orders = VAR currentCustomers = MAX('stats de vente'[client]) VAR currentDate = 'stats de vente'[date] VAR lastOrderDate = CALCULATE( MAX('dim date'[Date]), FILTER( ...
Fokou Serges's user avatar
3 votes
1 answer
167 views

foreach (int dirId in dirIds) { serieIds.AddRange((from serie in TableDataGrid.TargetBaseContext.Series where serie.RepertoireId == dirId select serie....
frhubert's user avatar
0 votes
1 answer
212 views

I need to import hundreds of global variables from global.js to the main.js. Does JavaScript have an efficient method to import all exports from that file at once, without importing them one-by-one? I ...
dllb's user avatar
  • 111
2 votes
1 answer
631 views

I just rewatched Demistify SwiftUI and noticed that some of the examples use variable properties inside a SwiftUI View, without using the @State property wrapper. For example (around 19.04): struct ...
Jack Goossen's user avatar
  • 1,291
0 votes
0 answers
842 views

I hope you can help me with an issue I am having with the python time series code for SVAR from statsmodels.tsa.vector_ar.svar_model. When I run the SVAR command below it appears that I am unable to ...
EOmic's user avatar
  • 1
0 votes
1 answer
86 views

I've been making an interpreter in python and I've run into a problem, it identifies strings, variables, numbers and expressions. while testing the .lang file I noticed it outputted {'$var': 'EQUALS'}...
s.s.scriptties's user avatar
0 votes
0 answers
35 views

I saw another post with the same question and it seemed to have differing explanations. Online resources also seem to have conflicting explanations, unless I am misunderstanding something. MDN says: &...
journeywithjavascript's user avatar
-3 votes
1 answer
65 views

I have hard time to understand what is the diffrence between: var requestPayLoad struct { Email string `json:"email"` Password string `json:"string"` } and: ...
user63898's user avatar
  • 31.1k
0 votes
1 answer
213 views

In my script, I will source other owner's TCL script. I try to check all variable if redefined in their tcl script file, Here I try in my script: proc trace_var {args} { set frame [info frame]; ...
JoshTitle's user avatar
2 votes
1 answer
55 views

I have the following code for attaching an event listener to a html element. I understand that the callback for this event listener forms a closure with its lexical environment. var submit = document....
Ends of Invention's user avatar
0 votes
1 answer
393 views

I am estimating an BVAR model in R and get the following error: Error in chol.default(V_post) : the leading minor of order 1 is not positive definite Thats actually not the problem, since I work ...
Dun02's user avatar
  • 1
0 votes
2 answers
74 views

Having this object: object BarManager { private var bars = mutableMapOf<String, Bar>() } Can't access bars like this: BarManager.bars[name] It gives me this error: Cannot access 'bars': ...
NullPointerException's user avatar
1 vote
1 answer
50 views

I try to understand why the variable 'Permissions' will be typeof 'function' when Permissions declared with var but typeof 'object' when declared with let (which is the excepted behavior) With 'var' - ...
Edi's user avatar
  • 13

1
2 3 4 5
50