21,616 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
2
answers
100
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
113
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
66
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
149
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
43
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
142
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
63
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
31
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
73
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-...
0
votes
0
answers
78
views
VIM keywords in syntax regex
I am currently writing a c3 syntax file for vim and I have some issues with a highlight.
I have this line:
syntax match ModuleName "\<module\>\s*\zs[a-z][a-zA-Z0-9_]*\ze;" display
and ...
4
votes
1
answer
86
views
Windows PowerShell parsing json - bracket vs dot
Using Windows PowerShell terminal for running a PS script.
I need to do (among the rest) some json file parsing. I ended up in a strange situation, here below posting a minimal example:
Json file:
{
...
0
votes
1
answer
78
views
Timestamp format fix needed
I'm trying to query a time-series container with 10M+ IoT records, but my TQL query fails with
GS3008: [TQL] Syntax error near '>' (position: 45)
Here is the query:
SELECT sensor_id, AVG(value)
...
0
votes
1
answer
99
views
Could anyone explain this syntax of XAML?
Could anyone explain this syntax of XAML?
<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://...