Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [syntax]

Questions about the particularities in the symbols that commands and programming languages require for a proper structure.

4
votes
3answers
3k views

Vim syntax highlighting lost on single file

I have a strange thing happening on a single file. When I open the file under it's original name, the highlighting is lost (":syntax on" does nothing). But if I cp that file with another name and open ...
0
votes
1answer
19 views

Script doesn't run anymore after upgrading to python 3.7.3

Just a beginner question, I upgraded python from 2.7.10 to python 3.7.3. Ran some scripts but nothing works anymore. So in the basis entered this code to check: a=("hello world") print(a) and still ...
0
votes
0answers
4 views

Working with Django2 and have a css trouble sintax

Im working trying to put the statics in to a web page but i have a sytaxis i cant resolve, somehow it shows me an error in 'Core and the dot between bg and jpg i will apreciate your help thanks [<...
3
votes
1answer
83 views

Why is Sublime Text 3.2 highlighting commas after values that start with “for” in Python dictionaries?

In the most recent version of Sublime Text (3.2 Build 3200), I have encountered what I think is a syntax highlighting error when writing in Python. Whenever I create a dictionary that has a key/value ...
0
votes
1answer
54 views

Bash script with another command inside of quote

Trying to execute a command like $ sdiff -i -W -B -l -w 140 <(curl -s "https://domain.tld/query.php?d=$(date +%Y%m%d)") <(curl -s "https://domain.tld/query.php?d=$(date --date="yesterday" +%Y%...
12
votes
2answers
6k views

Program for creating language syntax/grammar “railroad” diagrams? [closed]

I'm looking for the program that JSON, SQLite and other projects are using to create the diagrams used for their language syntax, if there is a particular program. All of the diagrams have a similar ...
0
votes
1answer
273 views

How to use find -iregex OR (|) operator?

Uninstalled an application, but it continues to pop up whenever I try to interact with file types that it used to be associated with. As usual, find has been invaluable in finding and eliminating ...
179
votes
5answers
92k views

In bash, how do I escape an exclamation mark?

I want to do something like bzr commit -m "It works!". I can sort of escape the exclamation mark by doing bzr commit -m "It works\!". However, then my commit message includes the backslash. How do I ...
-1
votes
2answers
58 views

Curl command what do I make wrong? [closed]

I get: root@dm820:~# ExecStart=/usr/bin/curl'https://dynupdate.no-ip.com/nic/update' --header "Authorization: Basic <$xxxx:$xxx>" -d 'hostname=<hostname>.xxxx.ddns.net' -sh: --header: ...
3
votes
1answer
88 views
1
vote
3answers
2k views

What is the meaning of pri=42

When mounting a swap partition on Linux, what does the mount option pri=42 mean? fstab: /dev/hda1 swap swap pri=42 0 0
1
vote
1answer
3k views

How to pass multiple arguments?

How to pass multiple paramaters for Start a program action in Windows Task Scheduler for a batch file? There's no built-in syntax hint...
1
vote
1answer
297 views

Compile error: Syntax Error in Excel

I cannot find a solution for this error, I am a beginner in Excel Macro and am trying to use this code to create a dropdown menu that autofills like a google search from Data Validation.
3
votes
2answers
1k views
7
votes
5answers
9k views

Explanation of command to uppercase the first letter of a filename

I'm trying to learn to rename files with the command line, and after browsing around a lot of pages I finally found a command that uppercases the first letter of a file, but the problem is that I want ...
0
votes
0answers
128 views

Automate install after bitsadmin download via CMD in windows

If I run this command bitsadmin /transfer mydownloadjob /download /priority normal https://the.earth.li/~sgtatham/putty/latest/w32/putty-0.70-installer.msi C:\Users\house\Desktop\filename.zip ...
2
votes
1answer
54 views

If “a:domain.com” is used, would it include emails sent from *@subdomain.domain.com address?

Supposedly I have example.com domain and would like it to allow mails sent from subdomain.domain.com. If the spf record should verify emails sent from *@subdomain.domain.com address (or mailed-by: ...
0
votes
1answer
62 views

Excel syntax bubble obscures column headers

The screenshot should say it all really. I keep getting frustrated with the Excel syntax bubble obscuring the column headers. My headers are often narrow and my formulas often refer to whole columns, ...
1
vote
0answers
84 views

syntax highlighting for python not working in vim for Windows

I want to use Pretty-Python-Vim in windows and have installed the necessary packages an placed .vim directory as described in the website. However even after doing the necessary changes in my vimrc ...
9
votes
2answers
23k views

How can I sort ls by owner and group?

How can I list directories with ls and sort them by their owner and group?
0
votes
1answer
31 views

File item renaming with brackets

I'm using macOS X, inputing this into the terminal to rename some stuff: find /Users/Ad//Desktop/Project/src/ -type f -name '*.java' -exec perl -pi -w -e 's/getGreenObject()/newObject("green")/g;' {} ...
0
votes
1answer
28 views

How do I rename all items in files in folder in folder in folder?

I'm using a MacOS X. I know that this code in the terminal will replace all txt files that include "hello" with "hiThere" in the folder named "world": perl -pi -w -e 's/hello/hiThere/g;' ~/Desktop/...
0
votes
1answer
109 views

VBA syntax on SetCell

I currently need a help to fix the code below. SetCell:="$M$30", MaxMinVal:=2, Valueof:="0", ByChange:="$D$4:$D$28" The error was compile error: syntax error.
0
votes
1answer
12k views

Compile error : Syntax error in Excel Macro

I have this VBA code, when I try to run it, it gives me "Compile error: Syntax error" as can be seen in the image. I don't know VBA, what should i do to make this code work ? thanks. Sub ...
1
vote
1answer
818 views

The service cannot find the resource identified by the resource URI and selectors

When run winrm set -? command, I can see the following example how to disable a listener: C:\Users\Administrator>winrm set -? Windows Remote Management Command Line Tool winrm set RESOURCE_URI [-...
0
votes
1answer
48 views

What causes a link to not go through after a user clicks on it?

I'm using Firefox in OS X on a MacBook. Lately, I've tried clicking some links on the Yahoo main page only to be redirected to a blank white page that says "Bad Syntax". Is this the link or the ...
0
votes
1answer
1k views

schtasks - Why doesn't this work?

I type this into cmd or in a batch script: schtasks /change /RP user_password /TN "existing_task" /ST H:M If /ST H:M has two digits in the hour it says ERROR: The parameter is incorrect. If /ST H:M ...
2
votes
1answer
225 views

Vim match containedin not working as expected

I have tried to extend the C syntax in Vim with the example in the manual. First I launch vim without any config: vim -u NONE test.c Then I load the c-syntax and create my extension syntax on ...
0
votes
1answer
119 views

Sublime Text 3 Missing Extensions

I started using sublime text v3 and I'm having problems with some extensions. When I look for php/js/css/html extensions, they aren't listed in the extensions list. I reinstalled the program and they'...
1
vote
1answer
445 views

Command Prompt > REG EXPORT > why is this an Invalid syntax?

I'm trying to export the existing settings for .rtf extension with this: REG EXPORT HKCR\.rtf %USERPROFILE%\Desktop\rtf_fta.reg It says "Invalid syntax". What is invalid about it? UPDATE: It ...
2
votes
2answers
404 views

How to set syntax enable permanently in Vim

How do I make Vim to remember the syntax enable (or syntax on) command, so I don't have to type it every time I open a new file?
2
votes
3answers
158 views

WildCards corrupts Copy`s output file when an output name is specified

copy create's an almost empty (1K) file when a wildcard (*?) is used in the source & an output name is specified. copy /D /V *?ample.png %homepath%/example.png it works for some file types (....
0
votes
1answer
33 views

Evaluating symbolic fractions without assigning values to the symbolic variables in MATLAB?

I'm working with a few matrices and trying to simplify the results involving symbolic terms. The subs() command won't work because there are no values assigned to the variables. But it's nasty trying ...
17
votes
4answers
3k views

Difference between '{}' and {} in find command?

In the documentation, I see usage both ways: find . -type f -exec file '{}' \; find repo/ -exec test -d {}/.svn -o -d {}/.git -o -d {}/CVS ; \
0
votes
0answers
106 views

Is it possible to create global .lnk Windows' files? [duplicate]

I tried to research for this, but nothing was clear to me. I'm a true newbie when talking about coding, as it has been a while I don't work with it. All I've found was VB, and some weird hex registry ...
2
votes
0answers
54 views

Extractor Information program by detecting syntactic patterns [closed]

I wonder if there is a program that helps you automatically extract information by setting syntactic patterns and save it in a base data.
3
votes
0answers
2k views

How can I block iframes with uBlock-origin?

I want to define a uBlock-origin filter for iframes on a certain website, whose sources is some other website. Is this possible? If so, what's the appropriate syntax?
1
vote
3answers
154 views

Lists in markdown

Suppose I have a list something like - 1. some content 2. some content 2b . some content 2c. some content 3. some content Now if I were to parse in markdown way it comes out as - some ...
2
votes
2answers
4k views

What about this Forfiles command syntax is wrong?

I was attempting to issue the following FORFILES command, and I recieved an error that distressed me (listed after the command). C:\Windows\system32>FORFILES /P %WINDIR%\servicing\Packages /M ...
0
votes
1answer
166 views

Removing a file with special characters through terminal, which has been selected by another command

this is my first post, so go gently :) I'm creating an AppleScript which runs bash commands to select and delete the most recently modified file within a specified group of folders. The file name ...
0
votes
2answers
493 views

Invalid Input Syntax in PostgreSQL

I am trying to import a csv file in PostgreSQL to a table. The table is set up as here: Table Setup: My csv file is delimited by commas and I have enclosed text that has commas within speech marks. ...
0
votes
1answer
334 views

Should Single Quotes Be Used for Multiple Row MySQL UPDATEs?

When you are performing a SQL UPDATE on multiple rows in MySQL, it seems that you can either put single quotes around every value or not and it will produce the same results. Is there a reason for ...
0
votes
1answer
2k views

Wireshark display filter for VLAN ID in Q-in-Q outer tag

What is the syntax of a display filter that exclusively shows double-tagged frames whose outer tag has VID 129. I want to filter the S-tag. I do not want to filter the C-tag.
0
votes
1answer
324 views

How to read PowerShell Documentation Syntax

I could use a good explanation of PowerShell Documentation Syntax: > man Update-Help SYNTAX Update-Help [[-Module] <string[]>] [[-SourcePath] <string[]>] [[-UICulture] <...
0
votes
1answer
77 views

Ncrack:brute forcing with sock4 or 5 helps?

Ncrack:brute forcing with sock4 or 5 helps?i have a slow pc and i found this: --proxy <type://proxy:port>: Make connections via socks4, 4a, http. would be --proxy socks5://120.200.200.125:9150 ...
4
votes
3answers
9k views

Checkbox in Mediawiki syntax?

Is there a way to insert an HTML checkbox in Mediawiki syntax? <input> doesn't appear on their list of blessed tags, so I can't just insert it. (FWIW, this is for a private documentation page ...
1
vote
0answers
326 views

Ncrack symtax to run multiple IP's and how to add threads and time? CL=5,cd700ms?

i use ncrack for windows Ncrack syntax,how to run multiple IP's and add threads and waiting time? I use this ordinary syntax with no threads and no waiting time and ncrack rate up to 40 ncrack -vv -...
0
votes
1answer
25 views

Create a URL that opens a web page at specified text

I'm trying to figure out the correct URL syntax to open a web page at specified text, rather than at the top of the page. For example, on the page http://softwarebychuck.com/febe/, I would like the ...
0
votes
1answer
118 views

Colon in Shell script

What does the ":" in shell scripts mean? I found the following in a shell script. Probably 'USE_MAD' is an environment variable. USE_MAD:/path/to/script.sh I found the following but could not aply ...
0
votes
0answers
292 views

ffmpeg merge two commands

I have two ffmpeg commands which work as expected- 1: a simple recode, removes sound ffmpeg -report -i $MP4FILE -an -vf hflip -movflags faststart $OUTPUTFILE.mp4 -nostdin 2: an overlay with an ...