Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

I have a file with some strings like below for which I want to replace the || with newline using powershell 5.1. This is || some test || string I've follow some advices in this thread and I'm trying ...
Rasec Malkic's user avatar
-6 votes
1 answer
61 views

So, there is a websocket server (game) and requires socket.io messages like this: 42["game:chat-public:msg","{\"id\":\"2qxgs2\",\"pId\":\"nfityk\"...
takeusback's user avatar
2 votes
1 answer
55 views

I am using Scala 3.3.7. When I do val str1 = raw"\\\" // compile error: unclosed string literal It is considering the \" as a single character. But when I do val str1 = raw"\\\\&...
Mradul Singhal's user avatar
0 votes
1 answer
33 views

<set-header name="password" exists-action="override"> <value>@("{{ERP_UKG_pwd_TST}}")</value> </set-header> the named value ERP_UKG_pwd_TST refers ...
Scott Paulin's user avatar
1 vote
1 answer
112 views

I'm in need to generate a CRC32 efficiently from within vbScript. I'm aware of doing this with CRC32 tables and so on, but this is very slow for large files. Therefore I'm using 7-zip.exe with option ...
Oliver Brehm's user avatar
12 votes
4 answers
671 views

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 ...
phpjunkie's user avatar
  • 475
2 votes
3 answers
148 views

Related to Properly simulate "pattern" attribute with javascript: How do I set an input pattern using JavaScript? when I try element.pattern = 'a\S' (as a trivial example), then the pattern ...
U. Windl's user avatar
  • 4,748
1 vote
0 answers
43 views

The W3C Atom docs contain this paragraph: If type="html", then this element contains entity escaped html. <title type="html"> AT&amp;amp;T bought &amp;lt;b&amp;...
mb21's user avatar
  • 40.3k
0 votes
2 answers
113 views

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 ...
Gouvernathor's user avatar
1 vote
3 answers
163 views

I have an output from the LLM call, which includes a string list. But the LLM is not smart enough to escape the double quote (") in the string, which will cause the json.loads error. How could I ...
Wennian Li's user avatar
1 vote
1 answer
103 views

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 "...
stackbiz's user avatar
  • 1,914
2 votes
1 answer
32 views

I am looking to create a rewrite file (.htaccess) for the National Library of Medicine (NLM) Classification, which uses URLs of this form (https://classification.nlm.nih.gov/schedules/QS#QS%2023) to ...
user3684314's user avatar
0 votes
1 answer
53 views

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 ...
user3920540's user avatar
1 vote
1 answer
73 views

I’m currently working on a few repositories that contain Nix flakes. You can test a Nix flake by running this Bash command: nix flake check That command will only work if you have the nix-command and ...
Ginger Jesus's user avatar
1 vote
0 answers
49 views

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" ...
tim11g's user avatar
  • 2,033
3 votes
4 answers
166 views

My question relates to the following question/answer from 2013: Efficiently convert backslash to forward slash in R I posted a question to the solution proposed by 'Arun' and 'flodel' at the link ...
please help's user avatar
2 votes
1 answer
83 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
0 answers
35 views

Sending ESC commands to a legacy matrix printer can be done easily in FreeBSD (and others) using: printf '\033k0' | lpr -P lp Above command chooses one font in a legacy STAR LC 7211 (seems to use ESC/...
M.E.'s user avatar
  • 5,695
0 votes
2 answers
54 views

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 ...
Manish Shrestha's user avatar
1 vote
1 answer
46 views

HTML Newbie here I want a button that uses the normal encoding, and also displays French. However, there are also some apostrophes (French altert texts is: Dans l'envelope.), so naturally I escaped ...
canIchangethis's user avatar
0 votes
1 answer
164 views

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 ...
Tobias Hermann's user avatar
0 votes
1 answer
81 views

This test program parses a single text argument, which could be a URL: #!/usr/bin/env python import argparse def parse_input(): parser = argparse.ArgumentParser( description='Program ...
Mister Smith's user avatar
  • 28.2k
3 votes
3 answers
129 views

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 ...
Benny Brudner's user avatar
0 votes
0 answers
71 views

why in this code in the vs code the last output cleared I think we should have "...." ?? from time import sleep c=1 while c<5 : print("."*c+"\r",end='') sleep(...
Mikel91's user avatar
  • 33
0 votes
0 answers
45 views

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 ...
Mikel91's user avatar
  • 33
-1 votes
1 answer
129 views

I have some items: items=(one two three) And I want to print them with leading -, to give this output: - one - two - three The obvious format string fails: printf '- %s\n' "${items[@]}" ...
Toby Speight's user avatar
  • 32.3k
1 vote
1 answer
75 views

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 ...
dtmland's user avatar
  • 2,278
-4 votes
1 answer
209 views

I'm working with a Go application where I need to pass raw JSON data to a struct field, but I am encountering issues with extra escaping when marshaling the struct, especially when the raw JSON ...
Sparsh's user avatar
  • 1
0 votes
1 answer
82 views

I have a file in S3 with the following contents: {"foo-bar": {"name":"Mercury","distanceFromSun":0.39,"orbitalPeriod":0.24,"dayLength":58.65}...
Samer A.'s user avatar
-3 votes
1 answer
83 views

I am trying to make a field with Django Tweaks and I am trying to add some HTMX attributes. I want to use the following syntax: {% render_field field <other attributes> hx-vals='{"country&...
TeaDrinkingProgrammer's user avatar
0 votes
0 answers
99 views

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 ...
user2210516's user avatar
1 vote
2 answers
135 views

I recently came to know how ANSI-C quoted strings can be used to give colourful prompts to commands that do not recognize escape characters. For e.g. % read -q $'val? \e[31mFoobar\e[0m:' ...
Dhruv's user avatar
  • 597
-1 votes
1 answer
65 views

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 ...
fauve's user avatar
  • 321
0 votes
0 answers
43 views

I am facing one issue. The application is Kotlin + Java. I am calling a Kotlin REST Resource passing the escaped backslash in the payload (This request is coming from external client). but I am ...
Harish Pal's user avatar
0 votes
0 answers
34 views

Please Help me for this Script on VBA Excel: Range("A7").Formula = "=SUMPRODUCT((Table_Query_dBF_Monde[INVOICENO]<>"")/COUNTIF(Table_Query_dBF_Monde[INVOICENO];...
Suwandi's user avatar
0 votes
0 answers
53 views

I am working on a process that needs to retrieve records from a cosmos database that may include quotes in the email address. When building the select statement I have tried to replace the single ...
ChrisP's user avatar
  • 47
0 votes
3 answers
118 views

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 '...
RJM_90's user avatar
  • 3
0 votes
2 answers
98 views

I am copying a function from the checkmate package which contains the following bit of ROxygen documentation: #' \item{strict:}{Performs checks like with \dQuote{unique} and additionally fails for ...
vorpal's user avatar
  • 329
1 vote
2 answers
51 views

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=* ...
isidroco's user avatar
2 votes
2 answers
325 views

I can't get this batch script to work, even though I tried a lot of things, I'm now stuck. The intention is for the batch script to re-run itself elevated, using PowerShell and Start-Process, if the ...
Eledwin's user avatar
  • 97
1 vote
2 answers
152 views

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....
Stephen Gadd's user avatar
-7 votes
2 answers
98 views

The following regex has been validated on regex101 and works fine, matching either "()", or "[]" or "{}": \(\)|\[]|\{} However: it's not so readable in Java gets even ...
ccampisano's user avatar
1 vote
0 answers
31 views

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 ...
Harsh Upparwal's user avatar
0 votes
0 answers
101 views

I am trying to install a desktop application through the command line. The application comes with an installer package, such as setup.exe, which was created using InstallShield. I am using this setup....
Harsh Upparwal's user avatar
1 vote
1 answer
62 views

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: &...
wa56's user avatar
  • 341
1 vote
2 answers
117 views

I've been having a hard time trying to figure out how to post a password that has a exclamation point ! from a Windows server to a Linux server. I only mention linux because linux uses ! for The ...
David's user avatar
  • 31
0 votes
1 answer
101 views

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 ...
Daniel James Bryars's user avatar
-1 votes
1 answer
102 views

I am trying to display < and > symbols as plain text in an HTML document, but they get interpreted as HTML tags. I used &lt; and &gt;, which work fine, but I'm wondering if there are ...
Suman Rani's user avatar
-1 votes
2 answers
94 views

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 (...
Said Traore's user avatar
1 vote
1 answer
487 views

the only thing that works is manually putting the entire path with single qoutes '. like cmake -G Ninja -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_FLAGS='-IC:/Program" "...
jade22's user avatar
  • 13

1
2 3 4 5
182