9,082 questions
0
votes
1
answer
25
views
In APIM policy, I keep getting error on characters from the named value
<set-header name="password" exists-action="override"> <value>@("{{ERP_UKG_pwd_TST}}")</value> </set-header>
the named value ERP_UKG_pwd_TST refers ...
12
votes
4
answers
653
views
How to correctly pass a filename with a single quote to ffmpeg's subtitles filter in Python?
I'm writing a Python script using subprocess to hardcode subtitles onto a video. My code builds a complex filter graph for ffmpeg's -vf argument, which includes burning in multiple layers of styled ...
1
vote
0
answers
42
views
Escape type="html" for Atom XML
The W3C Atom docs contain this paragraph:
If type="html", then this element contains entity escaped html.
<title type="html">
AT&amp;T bought &lt;b&...
0
votes
2
answers
113
views
Standardize/normalize HTML character escapes in Java
I'm trying to compare HTML fragments that have been processed by two different systems, to check that the results are equivalent, in particular regarding character escapes. I need a version of the ...
1
vote
1
answer
100
views
expect regular expression does not work with [yes/NO]
I'm running easyrsa init-pki in bash script, and use expect to auto answer the questions, but the following expect settings are not working as expected:
expect {
-re {Confirm removal:} {send "...
0
votes
1
answer
53
views
Backslashes interfering with json processing [duplicate]
I'm having trouble processing a file in R. I've seen that backslashes are difficult to deal with in R, but that question is old and I'm hoping that someone has something that will help. Here's an ...
1
vote
0
answers
49
views
Has handling of escape characters in quoted strings changed between Python 3.10 and 3.13? [duplicate]
I have a program that works under Python 3.10.2 Windows that contains a line like this:
outfilename = outpathname+"\cfile.txt"
outfilename ends up looking like
c:\some\path\cfile.txt"
...
2
votes
1
answer
82
views
Why use this syntax `{": "}` in React instead of just writing a colon
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(''...
0
votes
2
answers
47
views
Search Queries in MariaDB escaping - , spaces and
I have a MariaDB database with a huge list of part numbers. But I need to be able to make search queries for the product where users might not use the right seperating characters. For example the part ...
0
votes
1
answer
159
views
How to escape double curly braces in a promptfoo evaluation config?
I'd like to give this prompt to the LLM:
Output this exact string:{{some_string}}"
I.e., {{some_string}} shall not be replaced by Promptfoo with some variable, but be verbatim instead.
My current ...
3
votes
3
answers
125
views
regex to match all unescaped '$' in a regex string
I want to build a regex that will match all unescaped $ in strings that represents a regex.
In this case, a character is unescaped if it contains an equal number of backslashes behind it (each pair of ...
0
votes
0
answers
44
views
Why does \t produce different numbers of spaces in Python output? [duplicate]
In this code I use \t as tab but in one of them the out put has 8 spaces and in one of them the out put has 7 spaces instead tab(\t) how python calculate this how should we know how many spaces we ...
1
vote
1
answer
75
views
Powershell escape in LUA script
Trying to kill some child processes (given parent pid) from within a lua script. Found solution using wmic but prefer using powershell.
I can run each of these powershell commands in a standard ...
0
votes
1
answer
75
views
Can't Query AWS Athena Presto Table Because of Dash Character in Column name
I have a file in S3 with the following contents:
{"foo-bar": {"name":"Mercury","distanceFromSun":0.39,"orbitalPeriod":0.24,"dayLength":58.65}...
0
votes
0
answers
96
views
Dbeaver Generate SQL function adds unwanted escape characters
Often I want to make copies of a report in my reports table for some small modifications. Then I always query the report I want to copy select * from reports where id = 1 After that I right click on ...
-1
votes
1
answer
64
views
Disable escaping XML text passed through command line
General overview
I have a part of a XML file that comes from outside the XML (or the xslt itself) cause it's dynamically generated by another process. So I give it through the command line.
The ...
0
votes
0
answers
34
views
Formula in VBA not match in may range [duplicate]
Please Help me for this Script on VBA Excel:
Range("A7").Formula = "=SUMPRODUCT((Table_Query_dBF_Monde[INVOICENO]<>"")/COUNTIF(Table_Query_dBF_Monde[INVOICENO];...
0
votes
3
answers
117
views
ADF Snowflake Source Copy Activity Query
I have an ADF Copy Activity (Snowflake source, Azure Storage sink) which passes in the schema and table name using variables. Below is the dynamic query...
Dynamic query
It is failing with the error '...
1
vote
2
answers
44
views
Get mediainfo Height in Batch: wrong answer returned if property is defined (%% var escape)
I have this batch which works as expected giving the video height using mediainfo
@echo off
setlocal enableextensions enabledelayedexpansion
REM set "HEIGTH=1081"
for /f "tokens=* ...
1
vote
2
answers
147
views
Escaping special characters in a Vespa YQL `matches` query
By trial and error, I've found that the special characters requiring escapement in a Vespa matches query include more than just the quote " and backslash \ characters noted at https://docs.vespa....
1
vote
0
answers
30
views
Passing Special Characters with a space in MSI command-line parameters Across Scenarios [duplicate]
I am using this setup.exe to install the application by passing MSI parameters directly to the MSI via the command line:
setup.exe/s /v"/l*V installer.log INSTALLDIR="""C:\Program ...
1
vote
1
answer
62
views
mysql 8.0 process json with escape mark '\'
SET @v = '{"a":" \\u3b7e - c:\\user\\abc - \\"ET\\" "}';
SET @j = CAST(@v AS JSON);
failed Error Code: 3141. Invalid JSON text in argument 1 to function cast_as_json: &...
0
votes
1
answer
95
views
Why is Python Rich printing in green?
Using Rich I get what I think is a spurious green output in the console.
In the following code, the "d:c" is coloured green, the rest of the text is as expected.
from rich.logging import ...
-1
votes
2
answers
89
views
Using the escape function to concatenate the title with the colors together to show on my store
I am having issue to concatenate the title with the colors in this form ( " Title (color, color, color)" ).
Script works great with "Title": escape ((title)) but now when adding (...
0
votes
0
answers
54
views
Safe quoting of TeamCity parameters in Python scripts
TeamCity allows build parameters to be defined, and then used in build scripts.
Eg define a parameter output_dir which is set to doc\release_notes. TeamCity documentation says to use it in build ...