Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
79 views

DELIMITER // CREATE PROCEDURE CreateProductTable() BEGIN CREATE TABLE IF NOT EXISTS product ( product_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, product_name ...
wildREA's user avatar
  • 21
Advice
0 votes
13 replies
101 views

I am started coded in C++ not so far ago, and I still don't understand some things. For example, what is system. And if I declared using namespace system; at the top of code then I should write just ...
humankind's user avatar
Best practices
1 vote
4 replies
65 views

I have a tuple-struct and I want to init it with the values from another tuple, and I want to do it in one line, like I would with the `*args`: pub struct Dimensions(pub u32, pub u32); ... // let ...
Ibolit's user avatar
  • 9,840
1 vote
1 answer
85 views

My understanding is the match resulting from \@= SHOULD NOT INCLUDE the lookahead characters. Here is an example that has me perplexed: syn match InspectKeyword '\v(\+\s)\@=\w+' Results in: The ...
NW_BlackDog's user avatar
0 votes
0 answers
45 views

need to know the syntax for router.navigate for dialog Popup from a click event below routing works ( as a non dialog webpage) & wanted convert into a popup ! but how do I open it as a dialog(...
stellus's user avatar
  • 11
0 votes
0 answers
65 views

I have this bootloader I made a while ago and I would like it to be in nasm: .intel_syntax noprefix .code16 .equ STACK_TOP, 0x7C00 .equ SELF_LOAD, 0x7C00 .equ ELF_HDR_LOAD, 0x7E00 .equ SECT_SIZE, ...
Connor Thomson's user avatar
Best practices
1 vote
1 replies
36 views

In designing a language from scratch, should methods use a self variable to access properties and other methods? Or should they imply their target with .prop? Or should they treat properties as local ...
Armin Repsold's user avatar
2 votes
2 answers
213 views

I'd like to use constants to build regular expressions. However, in this case I got an unexpected syntax error: #!/usr/bin/perl use strict; use warnings; use constant CR_SAFE => '[:alnum:]@,._\-...
U. Windl's user avatar
  • 4,852
-2 votes
2 answers
141 views

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 ...
Phuwadon Verasertniyom's user avatar
Advice
0 votes
1 replies
231 views

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); ...
Valerian K.'s user avatar
-4 votes
1 answer
93 views

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 ...
RJVB's user avatar
  • 850
0 votes
2 answers
137 views

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 ...
Cholokom's user avatar
23 votes
1 answer
3k views

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[...
2A-66-42's user avatar
  • 890
3 votes
1 answer
145 views

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: ...
Webtest's user avatar
  • 53
0 votes
0 answers
127 views

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 ...
Travis's user avatar
  • 1
2 votes
3 answers
175 views

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....
Somin's user avatar
  • 23
-1 votes
1 answer
62 views

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 ...
xuehao-049's user avatar
4 votes
2 answers
156 views

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 ...
Peter M.'s user avatar
  • 948
0 votes
2 answers
102 views

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 ...
Patrick Kusanagi's user avatar
1 vote
2 answers
132 views

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\\'&...
emacs drives me nuts's user avatar
0 votes
0 answers
46 views

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 ...
jjbbbpayments's user avatar
0 votes
1 answer
91 views

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-...
SongBird's user avatar
0 votes
0 answers
92 views

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 ...
PalsFreniers's user avatar
4 votes
1 answer
108 views

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: { ...
Giacomo Pirinoli's user avatar
0 votes
1 answer
79 views

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) ...
rana hassan akbar's user avatar
0 votes
1 answer
106 views

Could anyone explain this syntax of XAML? <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://...
tutuna faltu's user avatar
-1 votes
1 answer
59 views

I'm trying to write a query that will join a subquery with a large union query and I'm having some trouble. Below is the subquery: SELECT DISTINCT X.JOB, FOO.PART FROM (SELECT C.PART, C.ORDER_NO, C....
THard34's user avatar
1 vote
1 answer
120 views

There's a sql batch script that mostly consists of truncate copy and insert instructions. Script is tended to be executed as psql -f ./script.sql After the tables being moved to specific schema trying ...
404's user avatar
  • 523
-3 votes
1 answer
86 views

Straightforward question, how can I differentiate these ifs? if (a is not 1 and not 2) { ... } and if (a is not 1 and 2) { ... } As I understand it, first one can be written as if (a != 1 &...
Daniel's user avatar
  • 7,810
2 votes
4 answers
156 views

When accessing a hardware register in C/C++, I usually create #defines like this: #define HW_REGISTER ((volatile uint16_t *)0xFFFF8A00) I.e. 0xFFFF8A00 is a pointer to a volatile uint16_t value and ...
Miro Kropacek's user avatar
4 votes
4 answers
221 views

I recently tried to use the <<- operator for heredocs in bash to keep indentation in my bash functions: cat <<- EOF Hello World EOF However it turns out this only strips literal tab ...
glades's user avatar
  • 5,446
3 votes
1 answer
108 views

Imagine that you want a way to remove fields at compile time depending on generic parameters. You can do this: struct MyStruct<T, const B: usize> { optional: [T; B] } If B = 0 then the ...
Makogan's user avatar
  • 10k
1 vote
3 answers
155 views

Trying to figure out the syntax in a batch file subroutine so it could be reused with a passed parameter. Main portion of batch file... Set PC=THISISATEST Call :ToLowerCase Subroutine... :ToLowerCase ...
user3208239's user avatar
0 votes
0 answers
45 views

Payment error: TypeError: Cannot read properties of undefined (reading 'createPayment') I have checked that I'm using SquareClient and not Client. I have simplified my code to use only commonJS and ...
Goose Lee's user avatar
2 votes
1 answer
84 views

I saw this code snippet on the React dev page (https://react.dev/reference/react/memo#updating-a-memoized-component-using-state): export default function MyApp() { const [name, setName] = useState(''...
matronator's user avatar
0 votes
1 answer
74 views

Can anyone tell me what is wrong with the syntax of the following SQL Anywhere script: BEGIN DECLARE myoutput_line LONG VARCHAR; DECLARE mytable_name VARCHAR(128); DECLARE ...
Ian Caesar's user avatar
-1 votes
1 answer
110 views

I have a function which takes a template template parameter, e.g.: template <template <typename K, typename V> typename Map> void foo(); I want to specify a default value for Map; namely, ...
einpoklum's user avatar
  • 138k
9 votes
1 answer
288 views

I accidentally added a semicolon in an expression constructing std::string, but the compiler happily accepted it without complaining anything. I did a minimum reproducible example below, kindly teach ...
PkDrew's user avatar
  • 2,301
6 votes
2 answers
204 views

I have a user-defined class Person and I want to create a variable-sized array (size taken at runtime) of Person pointers. The following code works as expected. Person **arr = new Person* [size]; ...
Newton's in-law's user avatar
1 vote
3 answers
179 views

Where-Object's params providing shorthands for builtin operators, one can skip the scriptblock and write: Get-ChildItem | Where-Object { $_.Name -match '\.(txt|md)$' } as: Get-ChildItem | Where-...
Get rid of LLM slop's user avatar
2 votes
2 answers
132 views

I am trying to create my own Powershell prompt in $profile. For now, i have the following : $ESC = [char]27 $RESET = "$ESC[0m" $pwd = $executionContext.SessionState.Path.CurrentLocation ...
Goulven's user avatar
  • 153
-2 votes
1 answer
375 views

Curious to know why the acceptable syntax in html for adding a website link fails when attempting to add an html website link to a craigslist ad when there are posts created by others with functional ...
Boilermaker73's user avatar
0 votes
0 answers
27 views

New to mips, so some of the text or formatting is from the professors instructions. Trying to translate the following C-Code into Mips Assembly language using Qtspim and Notepad a=0 for(i=0;i<10;i++...
unit5016's user avatar
2 votes
1 answer
52 views

I have the following syntactical problem: I want to declare a generic function of another more general, also generic type: The following example should make clear what I mean: The general type could ...
striderhobbit's user avatar
1 vote
1 answer
115 views

I'm working on a UML diagram using PlantUML to represent a simple ordering system. I’ve written the code, but I’m not sure if it's fully accurate. What can I improve or correct? Diagram produced by ...
Chris Jhon Cobrador's user avatar
21 votes
3 answers
1k views

I have a question regarding R function syntax. I've noticed that the following function works fine without curly braces {}: sign_function <- function(x) if (x > 0) "Positive" else ...
Gaia Streparola's user avatar
-4 votes
3 answers
118 views

I wonder why C++ is designed to insist on the iterator syntax? Why is it not possible to ommit the begin() iterator in some contexts? For example: std::copy(v.begin() + 1, v.begin() + 3, w.begin() + 6)...
Matyas's user avatar
  • 655
0 votes
1 answer
62 views

I'm relatively new to vim's syntax highlighting and its regex engine, which seems to be very differnt from others I've used (mainly perl, pcre, posix). This vim syntax highlighting problem has been ...
Laser128er's user avatar
1 vote
1 answer
327 views

How can I add a new line on a string in ABAP on Eclipse? This is my code below and I just want to put a newline after the first line so my code will not be redundant: OUT->write( |Firstname: { ...
darth-coder's user avatar
3 votes
2 answers
149 views

The member arrow operator is treated by the compiler in a special way. Since an overloaded arrow operator can have an arbitrary return type, several such operators from different classes may need to ...
Die4Toast's user avatar
  • 123

1
2 3 4 5
433