21,619 questions
-2
votes
0
answers
56
views
Syntax issue? Adding life stage to reproductive rate [closed]
My current model estimates the young of the year [t,1] for each year as a product of how many adult females [t,3] are surviving multiplied by litter size (LS), pregnancy rate (PR), and newborn ...
-1
votes
1
answer
70
views
Is there a way to capture a value from the left expression and use it on the right expression?
I want to modify or compute a value before assigning it to a const. Is there a way to do this in a single line expression?
I can use labeled block syntax, but I’m wondering if there’s another syntax ...
Advice
0
votes
1
replies
178
views
Why are double brackets required?
The following minimal example does not compile in Delphi 12.1:
program Project1;
{$APPTYPE CONSOLE}
uses
System.RTTI;
var
Value: TValue;
begin
TValue.Make (0, TypeInfo (TObject), Value);
...
-4
votes
1
answer
82
views
C++ preprocessor VARARGS - invalid syntax in a NodejS header file
I'm experimenting a bit with trying to build NodeJS 24.11.1 with GCC 13.4.0 on an older OS X system, mostly as a can-it-be-done project.
Regardless of the reasons, among the hurdles that could be ...
0
votes
2
answers
116
views
Windows 11 powershell run executable with parameter switches when IF statement false
Windows 11 Power shell
I'm trying to run the following IF statement in power shell - basically to check if a file exists on encrypted drive P, if it doesn't then create the encrypted drive. I get an ...
23
votes
1
answer
3k
views
How does the compiler interpret '____'?
I have found a piece of code that defines register access permissions for a chip. Using arm-none-eabi-gcc it compiles correctly.
Here is the code:
static const uint8_t defaultRegisterAccess[...
3
votes
1
answer
120
views
PowerShell Script: When the Ethernet Port status changes why doesn't the status report show the actual port status?
I am an occasional casual programmer (for about 60 years now!). I wrote 2 functional SNMP PowerShell desktop shortcut scripts 4 years ago. Now I am writing two scripts for my old Windows 10 system: ...
0
votes
0
answers
79
views
New dbt Prehook Depreciation Syntax?
I have a prehook in the config section of my model. I don't want it to be part of the project yml, just in my model query itself. It's been working fine up until this week where I started getting ...
2
votes
3
answers
152
views
Calling exe with Start-Process is not getting arguments correctly
I have a tool for editing the VersionInfo portion of our executables so that we can tie all of the different components to one installer part number. The tool I am using is resourcehacker (https://www....
-1
votes
1
answer
55
views
Syntactically required and semantically relevant tokens in Python grammars
I am trying to parse code into AST. I want to keep minimum keywords and delimiters in the AST while keeping the semantics.
In Python function definition def foo():, the last : is syntactically ...
4
votes
2
answers
145
views
Can I instantiate an object in PowerShell and set a property in a single command?
I know how to instantiate object in PowerShell but I am struggling to find out if its possible to instantiate an object and set one of its properties in the same command.
The following commands work ...
0
votes
1
answer
67
views
TypeScript error when linking to nested route with parentheses "Type '/(auth)/register' is not assignable to type 'RelativePathString'"
I'm building a React Native app using expo-router, and I’ve set up my authentication routes inside a group folder:
app/
├── (auth)/
│ ├── login.tsx
│ └── register.tsx
├── (tabs)/
│ └── index.tsx
...
1
vote
2
answers
125
views
Adjusting syntax table for a derived mode in .emacs
In order to view/edit Doxygen files, I am using
(define-derived-mode dox-mode
html-mode "dox"
"Major mode for Doxygen."
)
(add-to-list 'auto-mode-alist '("\\.dox\\'&...
0
votes
0
answers
38
views
I have an Analysis in Quicksight AWS and I want to create a vlookup to select a row within the dataset
Within AWS Quicksight we have created an analysis that has
several transactions all in different currencies that are all on different dates
there is a column that shows the GBP FX rate for that ...
0
votes
1
answer
82
views
Why does only .Range("A2") work when I'm setting a value between two sheets? How can I make variable references work?
Very new to VBA for excel.
I'm trying to put values from one sheet into another sheet. I've scoured the internet for solutions, and nothing has worked. Every time I get a 1004 Error: Application-...