Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
107 views

If I try to read an XML document without prefixes, it works fine. But with prefixes, I'm not getting the content. Sample: <rsm:CrossIndustryInvoice xmlns:a="urn:un:unece:uncefact:data:standard:...
ThomasB's user avatar
4 votes
1 answer
81 views

I am trying to prefix all endpoints with /api/, but I am getting 404 in return if not providing directly in the URL or while registering blueprint. main.py from init import app from modules.User ...
Mr.Singh's user avatar
  • 2,055
1 vote
2 answers
98 views

My problem is pretty straight forward, but yet I didn‘t come up with a solution for it - probably because my knowledge about regular expressions is very basic. I am trying to match only the entries of ...
Steinic30's user avatar
0 votes
1 answer
48 views

I am using SnakeYAML to dump my Java bean objects to a YAML file. The resulting YAML file looks like this: - !!com.catalog.Being type: human name: john origin: earth - !!com.catalog.Being type:...
Harold L. Brown's user avatar
0 votes
1 answer
85 views

I want to switch between two currency symbols on a Woocommerce product depending on what the user selects on a specific ACF field. Site is a real estate catalogue, there is no monetary transactions so ...
Ñako's user avatar
  • 77
2 votes
1 answer
141 views

What I need is to use prefix() with Middleware simultaneously within Laravel. For example this code: Route::prefix('admin')->group(function () { Route::get('/users', function () { // ...
zockchin's user avatar
2 votes
1 answer
116 views

I'm planning to merge data from different sets, but before I do I'd like to add prefixes to all variables in each dataset so that we can later easily determine where the variables initially came from. ...
Rachel Hough's user avatar
0 votes
3 answers
126 views

I have a dynamic array, each group of lines start with a specific code "S10.G00.00", "S10.G00.01", "S10.G00.02" ... The array may be like this: array:20 [▼ 0 => &...
hous's user avatar
  • 2,776
1 vote
2 answers
98 views

I've got a following array of objects let views = [ { name: "A View", active: true, }, { name: "B View", active: false, }, { name: "C View", ...
dariusz's user avatar
  • 595
2 votes
1 answer
237 views

Is there a way to add a prefix to a group od controllers leaving the rest of the controllers out of this prefix example: @Slf4j @RestController @AllArgsConstructor @RequestMapping(value = "/...
Sparks's user avatar
  • 602
2 votes
0 answers
107 views

In Django 5.0 I get the error: The list of urlpatterns should not have a prefix string. My code is: from django.conf.urls import url from django.urls import path, include from django.contrib import ...
Tirna's user avatar
  • 547
2 votes
0 answers
127 views

I added a prefix on my nuxt config. Everything works fine, but when my app is published online, when the app starts and build, the local fetch for _nuxt directory are wrong (I have 4 url that fetch ...
Jérome BORGA's user avatar
-1 votes
3 answers
721 views

i have with the command below the ipv6 address on my interface: > ip -6 a show dev wlan0 3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 ...
Franck 38's user avatar
1 vote
5 answers
191 views

I want to create an f-string that combines two strings, prepending a '.' character to the second if it is not empty. reference = "file" modifier = "read" print(f"unknown ...
creative-resort's user avatar
2 votes
1 answer
74 views

I'm using form prefix to render the same django form twice in the same template and avoid identical fields id's. When you do so, the separator between the prefix and the field name is '-', I would ...
Nico44044's user avatar
  • 399
0 votes
0 answers
44 views

I have uploaded an image in s3 bucket and attached a CloudFront distribution to that bucket. I have stored the full image path (which is a valid image) in my database. i.e. https:/d3l9brpcqhhun7....
Md. Zayed Hassan's user avatar
0 votes
1 answer
46 views

The follow configuration: Raspberry Rpi4B / Python 3.11.2 / PyQt5 5.15.9 The follow configuration: Raspberry Rpi4B / Python 3.11.2 / PyQt5 5.15.9 I have a question about how to adjust prefix checksum ...
Eric's user avatar
  • 11
-1 votes
0 answers
28 views

solving a problem in leetcode, I needed to create a matrix and take data from another matrix, for this I wrote res[0][0]=s[0][0], but for some reason Python assigned all res[0-2][0] values ​​to s[0][0]...
Rassoha's user avatar
0 votes
1 answer
62 views

How to find invoice number from different companies which may have different order of invoice number, unit cost and total cost? Following is specific example of a company XYZ which I need to get ...
panes-rubrics's user avatar
1 vote
1 answer
93 views

FastAPI Routing Question: Hi, I've got 3 databases set up (master databases that is, postgres instances) as such: master1: - db1: - tables... - db2: - and so on... -...
d.eng 489's user avatar
2 votes
2 answers
80 views

Supposing I have this php array: $booklist = Array ( [0] => Peppa / Season 2 / 43 The Quarrel / Page 1 [1] => Nursery Rhymes / Wheels On The Bus / Page 1 [2] => Wonderskills / ...
Liam's user avatar
  • 75
0 votes
1 answer
441 views

I spent lot of time to compile latest OpenSSL with mingw64 within CygWin on Windows 11. Public information mentioned use install prefix like \cygdrive\c\install_folder but you need these commands ...
Tomáš Mark aka DSDotName's user avatar
0 votes
0 answers
21 views

I'm trying to add a prefix to all output of the following command: sudo apt update && sudo apt -y upgrade I've been scouring the internet and it seem there are 2 outputs to handle. STDOUT, and ...
level42's user avatar
  • 989
1 vote
0 answers
102 views

I transferred a /24 subnet (256 IPs) to AWS via BYOIP and I would like to assign some of these IPs to EC2 instances. I know it is possible to assign a small subset directly to the instance's network ...
Rafael Ivan Garcia's user avatar
0 votes
0 answers
34 views

There is some eror in input precedence value and stack precedence value for conversion of infix expression to prefix expression(in the table). Please provide the corrected value: |Symbol| Stack | ...
user23435187's user avatar
0 votes
0 answers
172 views

I'm trying to write a program to detect whether a word has a prefix and/or a suffix. Normally, I'd just use .startswith() and .endswith(). I'd prefer not to use that here because certain words, like '...
Tathya Garg's user avatar
1 vote
1 answer
81 views

I have a function that finds and prints the longest common chain between two DNA chains. However I want to add some checks so my program can ignore characters that are not bases ('A', 'T', 'C', 'G') ...
ms complaints's user avatar
0 votes
1 answer
112 views

I want to add prefix to all router like this: courses.org/mycaliforniapermit/register (course 1) courses.org/mycaliforniapermit/admin/login (course 1 backend) courses.org/mycaliforniapermit/login (...
webii Luong's user avatar
1 vote
1 answer
222 views

Right now this is my code: precedence = { "+": 1, "-": 1, "*": 2, "/": 2, "": 0 } def is_operator(token): ope = set(['+', '-',...
vale383's user avatar
  • 119
3 votes
2 answers
476 views

Again I feel like I should be able to do something to seems not quite complicated but I can't figure it out. I have a dataframe df with variables a1, v_a1, a2, v_a2 and so on. All I want to do is ...
elka's user avatar
  • 97
1 vote
1 answer
75 views

I have data that look like this, with the dates of Birth and Death for patients. ID DOB Birth_Year DOD Death_Year 1 2016-10-01 2016 2019-10-15 2019 2 2017-07-01 ...
Yanting Luo's user avatar
0 votes
1 answer
1k views

Is there a way to apply SNS filtering to match all messages that has message attribute 'MyMessageAttribute ' ( type = String.Array ) and any of its value start with "MyPrefix" ? I have ...
Alan Shu's user avatar
0 votes
0 answers
67 views

I wrote a simple code for printf in C with unary prefix operator as the following: #include <stdio.h> int main() { int i=5; printf("%d %d %d",++i,i,i+1); return 0; } And ...
Viraj's user avatar
  • 1
0 votes
0 answers
116 views

I have this XML schema: <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:r="urn:rt" targetNamespace="urn:rt"> <element name="RTC&...
SebastianWilke's user avatar
0 votes
1 answer
311 views

All my routes should have api prefix, except the .well-known route so I've added that path into the exclude option of the setGlobalPrefix method app.setGlobalPrefix('api', { exclude: ['.well-known'] ...
Sandzhak Bob's user avatar
0 votes
1 answer
135 views

I have created the following pandas dataframe: import pandas as pd ds = {"col1":[1,2,3,4,5], "col2":[6,7,8,9,10]} df = pd.DataFrame(data=ds) print(df) Which looks like this: ...
Giampaolo Levorato's user avatar
0 votes
1 answer
537 views

Hi I have got lot of individual svg files which I want to chunk in a single file using svg-chunk-webpack-plugin. I followed the example here and was able to do it. It is internally taking care of ...
Mitesh Agrawal's user avatar
0 votes
2 answers
101 views

I tried this $data = "air;air;air;bus;air;air;bus;air;air"; $a = substr_count($data,"air"); $b = substr_count($data,"bus"); $data = implode($a . ' x ', array_unique(...
Pekzz's user avatar
  • 75
1 vote
2 answers
838 views

I know the sort command can be made to use only some of the information on each input line as the sort key, e.g. using sort -k 2 to skip the initial sequence of characters up to a whitespace; and I ...
einpoklum's user avatar
  • 138k
0 votes
1 answer
162 views

this is my first question here and I hope that I'll find an answer for my problem. Situation: I'm not a programmer but I'm currently learning python (interesting and fun). I looked for interesting ...
Daniel S.'s user avatar
0 votes
1 answer
506 views

You are given a string s. Consider the following algorithm applied to this string: Take all the prefixes of the string, and choose the longest palindrome between them. If this chosen prefix contains ...
Tate's user avatar
  • 1
1 vote
2 answers
323 views

From the link, the r prefix is about raw string. Actually, there are some situations that cause me very difficult to understand the r's function. Let me express my opinion: 'H:\\Education' equals r'H:...
Y. zeng's user avatar
  • 165
0 votes
1 answer
687 views

I've been actively working with Azure Blob Storage and its lifecycle management features. In this context, I have a Blob Storage account dedicated to storing my database backups. These backups are ...
John kenneth Suaverdez's user avatar
0 votes
1 answer
970 views

So what is the best way to move a blog that triggered an azure function between "sub folders" in blob container. I know that Azure function blob containers are flat, so the thing i call sub ...
H4p7ic's user avatar
  • 1,933
0 votes
1 answer
95 views

How do I autofill in excel when there is a prefix? Here is my code that autofills column A with user input start number and last number. But I want to modify it so that it can handle numbers with ...
user21920024's user avatar
2 votes
0 answers
107 views

Thesedays I have been struggling to construct a new dataset with opensource dataset. The first opensource dataset I downloaded is YAGO4.5. I have to take all the predicates of triples and analyse ...
unstuck's user avatar
  • 51
0 votes
1 answer
85 views

I am supposed to carefully (without error or data loss) rename files in a particular directory on linux samba share, which contains hundreds of files (mostly images, docs, pdf guides and ebooks) with ...
Hr13aale's user avatar
0 votes
3 answers
878 views

Given the following situation: Actual entrypoint from the web is https://my.tld/customprefix The application is unaware of the prefix and listens to / This means that the application will redirect ...
Kalsan's user avatar
  • 1,069
-1 votes
2 answers
687 views

I write a function with using same identifier for local variable and globel variable, as shown as following codes: def func(time_len, num_nodes): pass if __name__ == '__main__': time_len, ...
theabc50111's user avatar
0 votes
1 answer
3k views

I have a sql query that joins 2 tables on the column product_id. Pretty straight forward. Result is below: However, after joining, I realized I have to do a subquery with all the columns listed here. ...
Katsu's user avatar
  • 9,075

1
2 3 4 5
28