Id
int64
4
8.51M
PostTypeId
int64
1
7
AcceptedAnswerId
int64
7
75.5M
ParentId
int64
4
41.8M
Score
int64
-208
27.7k
ViewCount
int64
11
12.4M
Body
stringlengths
0
45k
Title
stringlengths
2
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
225
CreationDate
stringdate
2008-07-31 21:42:52
2011-12-14 18:48:47
LastActivityDate
stringdate
2008-08-01 12:19:17
2023-03-05 04:40:26
LastEditDate
stringdate
2008-08-01 13:54:25
2023-03-05 03:12:45
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
-1
21.1M
Tags
listlengths
1
6
75,634,649
2
null
75,632,991
0
null
You can't create a function that returns a dynamic number of columns without hard coding the list of columns at some place (either when calling the function or when defining the function). The best (only?) option I see, is to create a view that is based on the content of the table. You can then call that view each time...
null
CC BY-SA 4.0
null
2023-03-04T09:07:42.963
2023-03-04T09:07:42.963
null
null
330,315
null
75,634,655
1
null
null
0
15
I am a beginner in Django.. i am trying to work with, admin,super admin,user in Django. What is the difference between admin and super admin in Django? how can i implement super admin & Django admin? How can i give separate permission to Django admin and super admin and Django user? Is super user and super admin are sa...
How to implement Django Admin and Super Admin? Is super admin and Super user are same in Django?
CC BY-SA 4.0
null
2023-03-04T09:08:49.950
2023-03-04T09:08:49.950
null
null
18,082,945
[ "python", "django", "django-admin" ]
75,634,656
2
null
75,628,781
0
null
you can use promise instead of callbacks ``` app.get("/", async (req,res)=>{ try { const foundItems = await Item.find({}) if(foundItems.length === 0) { await itMatchesOne.insertMany(defaultItems); res.redirect('/') }else{ res.render('list', { listTitle: "Today", new...
null
CC BY-SA 4.0
null
2023-03-04T09:08:58.173
2023-03-04T09:08:58.173
null
null
14,343,167
null
75,634,654
2
null
75,630,689
1
null
I've added Guava to my project and replaced the Map with a LoadingCache object. It takes the same type of parameters and allows me to easily set the time before expiration. ``` private static LoadingCache<String, List<ChatMessage>> conversations; public static void initializeOpenAi() { service = new OpenAiService(...
null
CC BY-SA 4.0
null
2023-03-04T09:08:46.810
2023-03-04T09:08:46.810
null
null
10,844,972
null
75,634,657
2
null
75,473,318
0
null
You should transfer the model and data to GPU like this: ``` import torch from transformers import AutoTokenizer from transformers import GPTJForCausalLM model = GPTJForCausalLM.from_pretrained("/DCARD/repo/gpt-j-6B", revision="float16", torch_dtype=torch.float16, low_cpu_mem_usage=True).to("cuda") tokenizer = AutoTok...
null
CC BY-SA 4.0
null
2023-03-04T09:08:58.890
2023-03-04T09:11:05.983
2023-03-04T09:11:05.983
11,235,205
21,329,804
null
75,634,643
1
null
null
-3
25
I need to scrape some products data from three different websites. Since the tool will need to run on a client machine that don't have many digital competences, I need to setup a simple process to achive this. I'm very unsure what can be the best approach to use. I've evalued the following solutions: 1. node.js and pu...
Web scraping - How to scrape different websites using javascript
CC BY-SA 4.0
null
2023-03-04T09:06:38.683
2023-03-04T15:03:57.617
2023-03-04T15:03:57.617
14,671,456
14,671,456
[ "javascript", "node.js", "google-chrome-extension", "puppeteer" ]
75,634,642
1
null
null
0
21
Hi i created a demo project that i can with import excel files and get them into my database with laravel excel but what i want to do is with mapping not just a simple import and get them into the database like if the excel file is missing a field or a name i want like to specify each field alone like field name alone ...
How to Import Excel File to Database with Mapping Laravel
CC BY-SA 4.0
null
2023-03-04T09:06:38.400
2023-03-04T09:06:38.400
null
null
11,636,131
[ "php", "excel", "laravel", "database", "mapping" ]
75,634,646
2
null
19,417,670
0
null
I found an one more way to do this using one less class, inspired by @Jose Mhlanga's answer Create a `BaseEntity` ``` @Getter @Setter @MappedSuperclass public class BaseEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) Long id; } ``` Create a `BaseRepository` ``` @NoRepositoryBean public int...
null
CC BY-SA 4.0
null
2023-03-04T09:07:13.447
2023-03-04T09:15:16.307
2023-03-04T09:15:16.307
6,950,568
6,950,568
null
75,634,639
1
null
null
-2
30
This is the error: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list It shows that the error is in this SQL line (Rating has a ratingId but it is an AutoNumber): ``` public static bool InsertRating(Rating su) { string sql = s...
string SQL results in an error, how can I fix it?
CC BY-SA 4.0
null
2023-03-04T09:05:48.083
2023-03-04T09:05:48.083
null
null
21,164,633
[ "sql", "insert" ]
75,634,663
2
null
75,633,807
1
null
It should be `slug` in `rant_category` view not `category`, like so: ``` def rant_category(request, slug): rants = Rant.objects.filter(categories__slug__contains=slug) context = {"category": slug, "rants": rants} return render(request, "rants/rant_category.html", context) ```
null
CC BY-SA 4.0
null
2023-03-04T09:10:09.397
2023-03-04T09:16:43.410
2023-03-04T09:16:43.410
17,562,044
17,562,044
null
75,634,664
2
null
75,634,576
0
null
Is this what you're looking for? ``` # Initialize an empty list to store sublists lists = [] # Get the number of lists and the size of each list n = int(input()) # Add appropriate input message # Iterate over each list and append it to the sublists list for i in range(n): sublist = list(map(int, input().split()))...
null
CC BY-SA 4.0
null
2023-03-04T09:10:15.903
2023-03-04T12:38:01.073
2023-03-04T12:38:01.073
21,299,224
21,299,224
null
75,634,659
1
null
null
0
19
I made a virtualhost in XAMPP with this code: ``` <VirtualHost *:8181> ServerAdmin website1 DocumentRoot "C:/XAMPP/htdocs/website1" ServerName transparency ErrorLog "logs/website1.log" CustomLog "logs/website1.log" common <Directory C:/XAMPP/htdocs/website1> AllowOverride All Order Allow...
Can XAMPP publish 2 websites with the same public IP but with different ports?
CC BY-SA 4.0
null
2023-03-04T09:09:22.530
2023-03-04T09:15:04.793
2023-03-04T09:15:04.793
21,329,571
21,329,571
[ "apache", "xampp", "virtualhost" ]
75,634,668
2
null
75,634,399
0
null
Insert before `fig.show.()`: > fig.update_traces( opacity = 1, template = "plotly_white" )
null
CC BY-SA 4.0
null
2023-03-04T09:11:17.473
2023-03-04T09:11:17.473
null
null
16,054,911
null
75,634,658
1
null
null
1
26
I need to use 2 different git repos in the same folder tree. Let's say I have the following local file tree : File x1 File y1 ... any other files ... File z1 ... any other files ... File x2 File y2 ... any other files ... File z2 ... any other files ... ............ and so on ............ File xn File yn ... a...
How to use 2 different git repos (mutually ignoring each other files) in one common folders tree?
CC BY-SA 4.0
null
2023-03-04T09:09:12.930
2023-03-04T09:27:32.650
2023-03-04T09:27:32.650
21,330,460
21,330,460
[ "git" ]
75,634,660
1
null
null
0
18
I found this question/answer with the following code [How do I get a fill_between shape in Funcanimation?](https://stackoverflow.com/questions/44413223/how-do-i-get-a-fill-between-shape-in-funcanimation) ``` import numpy as np from matplotlib import pyplot as plt from matplotlib import animation X = np.linspace(0,3.42...
Animate fill_between under a curve FuncAnimation - Animation starts already with the fill_between, how do I remove this
CC BY-SA 4.0
null
2023-03-04T09:09:30.007
2023-03-04T20:20:49.820
2023-03-04T20:20:49.820
3,036,357
3,036,357
[ "matplotlib-animation" ]
75,634,666
2
null
75,634,576
1
null
If you just append the values from your initial input line to `lst` it allows you to take each line and make it into a 2D list ``` >>> lst = [] >>> lst.append([int(y) for y in input().split()]) 5 2 >>> lst.append([int(y) for y in input().split()]) 6 1 >>> lst [[5, 2], [6, 1]] >>> ``` However, you mentioned multiple li...
null
CC BY-SA 4.0
null
2023-03-04T09:10:49.163
2023-03-04T09:16:42.237
2023-03-04T09:16:42.237
19,860,022
19,860,022
null
75,634,661
1
null
null
0
14
Relevant part of the : ``` version: "3.5" services: Database: image: postgres container_name: Example-Local-Database ports: - "${DATABASE_PORT}:${DATABASE_PORT}" environment: - "POSTGRES_PASSWORD=${DATABASE_PASSWORD}" volumes: - DatabaseData:/var/lib/postgresql/data # ......
"getaddrinfo ENOTFOUND Database" when try to connect with Database from TypeORM CLI while basically connection is fine
CC BY-SA 4.0
null
2023-03-04T09:09:37.697
2023-03-04T09:27:55.083
null
null
4,818,123
[ "node.js", "docker", "typeorm" ]
75,634,671
1
75,635,128
null
0
19
I want to set my logo on each page except the front page. Right now I am able to do it on one page with the following: \begin{tikzpicture}[remember picture,overlay] \node[anchor=north east,inner sep=15pt] at (current page.north east){\includegraphics[scale=0.2]{Figures/logo.png}}; \end{tikzpicture} This sets the logo a...
How to set logo on each page with tikz?
CC BY-SA 4.0
null
2023-03-04T09:12:00.357
2023-03-04T11:33:19.910
null
null
20,238,961
[ "latex", "overleaf" ]
75,634,672
2
null
75,634,605
0
null
There might be a problem with how you are trying to store the image. From what I have seen from your code is that you are using the original file name instead of the compressed file name, This can result in zero bytes being uploaded since the original file is not actually being uploaded. Try using this approach. ``` $c...
null
CC BY-SA 4.0
null
2023-03-04T09:12:10.687
2023-03-04T09:12:49.457
2023-03-04T09:12:49.457
14,069,680
14,069,680
null
75,634,670
2
null
74,949,586
0
null
I had the same issue and solved it by downgrading my version of Docker. I'm using Manjaro Linux and after tinkering for long time with no success, I tried downgrading the Docker version from version 23.0.1 (this one seem to cause the issue) to version 20.10.23. After a restart of the system the issue does not appear a...
null
CC BY-SA 4.0
null
2023-03-04T09:11:46.163
2023-03-04T09:11:46.163
null
null
21,330,574
null
75,634,665
1
null
null
0
23
In a node.js program I'm struggling with a async/await http get function, in order to get the status of a domotica appliance zigbee gateway. The script does not wait until http get service is finished. I can not get it wait after serveral efforts. Here is the code. ``` async function PlugWiseGetStatusbyName(pAuthorbase...
Node.js javascript I'm stuck with a async/await http get function: the script does not wait until the function is finished the http get
CC BY-SA 4.0
null
2023-03-04T09:10:42.910
2023-03-04T09:16:35.880
2023-03-04T09:12:12.517
12,903,716
12,903,716
[ "javascript", "asynchronous", "async-await" ]
75,634,673
2
null
75,634,250
0
null
1. You are not returning the filtered array inside the filter callback function. 2. In the for-in loop, you are pushing an array of filtered objects to the results array, but each element of the results array will contain an array of objects instead of a flat array of objects. I'm not sure if this is the desired forma...
null
CC BY-SA 4.0
null
2023-03-04T09:12:10.917
2023-03-04T09:12:10.917
null
null
21,288,555
null
75,634,675
1
null
null
-1
19
I have done counting for my RNA-Seq samples based on reference "hg38.knownGene.gtf" that i got from UCSC database by GenomicAlignment package. Output file that I have contains unfamiliar IDs to me and I do not know how can change this strange IDs to names. This is the code that I have used to define the feature: ``` gt...
How it is possible to change the IDs to Name after RNA-Seq read counting in R?
CC BY-SA 4.0
null
2023-03-04T09:12:26.003
2023-03-04T09:12:26.003
null
null
16,136,973
[ "r", "bioinformatics" ]
75,634,676
2
null
75,292,573
0
null
Not sure if I understand your question correctly, but here's a few thoughts: - CrUX data isn't available unless you have a certain amount of traffic to your site. Grow your site's traffic and you'll eventually be included in the CrUX reports. Note that CrUX now offers [historical data as well](https://developer.chrome....
null
CC BY-SA 4.0
null
2023-03-04T09:12:41.810
2023-03-04T09:12:41.810
null
null
813,759
null
75,634,680
1
null
null
0
19
I need a PowerShell script to install updates or security patches this is my script but its response failed ``` # Check for updates $updates = Get-WindowsUpdate -Classification "Critical,Security" # Install updates Install-WindowsUpdate -KBArticleID $updates.KBArticleID ```
Powershel script for install updates on multiple windows servers
CC BY-SA 4.0
null
2023-03-04T09:13:12.110
2023-03-04T18:27:11.157
2023-03-04T18:15:54.227
3,074,564
15,118,253
[ "powershell", "updates", "windows-server" ]
75,634,674
1
null
null
0
11
i am trying to get data from mongodb in nextjs but getting 404 error. here i will share backend code and frontend code. please look into this and help me to resolve this error. ``` exports.publicProfile = async (req, res) => { try { const user = await User.findOne({ username: req.params.username }).select("-role -passw...
i am not getting data in nextjs from mongodb
CC BY-SA 4.0
null
2023-03-04T09:12:24.540
2023-03-04T09:12:24.540
null
null
20,528,717
[ "reactjs", "mongodb", "api", "next.js", "next" ]
75,634,679
1
null
null
0
15
I have a `api gateway` and 2 micro services: `users` `orders` So, What is the best way for create urls and call services? I have 2 way for this problem: 1- use service name in url: `/api/users/{id}` `/api/orders/{id}` 2- use service name in header and remove it from url: `/api/{id} --header service: users` `/api/{id} -...
How use service name for micro services?
CC BY-SA 4.0
null
2023-03-04T09:12:59.870
2023-03-04T09:12:59.870
null
null
20,959,534
[ "php", "node.js", "api", "rest", "microservices" ]
75,634,669
1
null
null
0
17
I have managed to create the line and the plot that I want but unfortunately I have failed to create a simple hover over the line. This is the main code: ``` var groupclusters = d3.nest() .key(function(d) { return d.clustindex; }) .entries(expsdata); var svg = d3.select("#container3") ...
One d3 line on nested data with mouseover
CC BY-SA 4.0
null
2023-03-04T09:11:18.053
2023-03-04T10:48:49.573
2023-03-04T10:13:13.483
9,467,089
9,467,089
[ "javascript", "d3.js", "nested", "mouseover", "line-plot" ]
75,634,662
1
null
null
-1
33
I'm trying to render information from a json file that I made to show on a page. I have used bootstrap for formatting the cards but when I try it without the bootstrap formatting it still doesn't work. Any ideas for what it is missing? My json file: ``` [ { "id" : 1, "projectname": "Having fun", ...
React props not working when map() function on json file
CC BY-SA 4.0
null
2023-03-04T09:10:04.830
2023-03-04T09:43:02.820
null
null
20,047,387
[ "javascript", "reactjs", "json", "react-props" ]
75,634,677
1
null
null
0
16
I want to create object inside object using jolt My input is like ``` { "rating-primary": 1, //much more other stuff } ``` and expected output should be ``` { "rating": { "id": 1 // it should be the rating-primary } //remaining o/p } ``` and there are much more in my spec for other stuff like below...
Create object inside object in jolt
CC BY-SA 4.0
null
2023-03-04T09:12:45.900
2023-03-04T10:31:27.060
2023-03-04T10:31:27.060
5,841,306
7,032,023
[ "json", "jolt" ]
75,634,683
2
null
63,469,271
1
null
You can customize the appearance of the [NavigationView](https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.navigationview?view=windows-app-sdk-1.2) by getting the child grid by the [VisualTreeHelper](https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.media.visualtreeh...
null
CC BY-SA 4.0
null
2023-03-04T09:13:22.750
2023-03-04T10:10:30.147
2023-03-04T10:10:30.147
16,216,985
16,216,985
null
75,634,687
1
null
null
0
5
I have an email1 with 4 file attachments that I am retrieving from a mailbox using Graph API which works fine and can read the attachment bytes so I am certain I have the data. I now want to attach this entire email1 intact (body and attachments) into a new email2 that I want to send. So a new email2 with one email1 at...
Attach an email with attachments with Graph API
CC BY-SA 4.0
null
2023-03-04T09:14:53.880
2023-03-04T09:14:53.880
null
null
4,013,462
[ "microsoft-graph-api" ]
75,634,682
1
null
null
0
12
I'm starting with java reactor and trying to understand how back pressure works. I have written the following sample code: ``` Flux<Long> publisher=Flux.interval(Duration.ofMillis(1)); publisher .subscribeOn(Schedulers.newSingle("publisher-x")) .map(x->{ System.out.pr...
How does OnBackpreasure work with java reactor
CC BY-SA 4.0
null
2023-03-04T09:13:21.950
2023-03-04T09:13:21.950
null
null
6,529,706
[ "java", "project-reactor" ]
75,634,686
2
null
75,634,250
0
null
The issue with the code is that in the `for...in` loop, the filter function inside the `movies[property].filter()` method is not returning anything. The `filter()` method should return an array with the elements that pass the condition. However, in the current implementation, the `filter()` method is called but the res...
null
CC BY-SA 4.0
null
2023-03-04T09:14:15.480
2023-03-04T09:14:15.480
null
null
20,174,042
null
75,634,688
1
null
null
0
11
I have a route group with three patch routes and one resource route [](https://i.stack.imgur.com/1w9sz.jpg) when I run node ace list:routes I get this: [](https://i.stack.imgur.com/nfZlU.jpg) here I get one more slash after prefix in GET, PUT and DELETE why this happining?! I want have resource route in my group routes...
resource route within group route does not work properly adonis.js 5
CC BY-SA 4.0
null
2023-03-04T09:14:55.773
2023-03-04T17:28:01.840
2023-03-04T17:28:01.840
20,885,224
20,885,224
[ "routes", "adonis.js" ]
75,634,667
1
null
null
0
21
I have been trying to fix my hamburger menu so that the headings go into it, in the navigation bar. However, it is not working. Does anyone know of a fix to this? I am new to programming so the code might be messy. ``` <!DOCTYPE html> <html> <head> <title>My Website</title> <meta charset="UTF-8"> <...
Why are the headings in my navigation menu not going into the hamburger menu when it is zoomed in by 250%?
CC BY-SA 4.0
null
2023-03-04T09:11:11.510
2023-03-04T09:32:12.217
2023-03-04T09:32:12.217
19,512,665
21,323,845
[ "javascript", "html", "css" ]
75,634,689
1
75,634,724
null
-2
14
I have the following yml file as my GitHub workflow: ``` name: Lint and Test Charts on: push: branches: [ main/master ] pull_request: branches: [ main/master ] paths: - 'open-electrons-monitoring/**' - "!**/README.md" - "!images/**" - "!README.md" jobs: lint-test: runs-on...
GitHub Actions Workflow not getting Triggered
CC BY-SA 4.0
null
2023-03-04T09:14:56.407
2023-03-04T09:22:33.910
null
null
3,102,968
[ "github-actions", "kubernetes-helm" ]
75,634,690
2
null
75,631,448
0
null
You are probably experiencing the result of not setting the samesite cookie attribute to the correct value for your situation. When you want to include cookies in both POST/GET operations across sites, you must set both samesite=none and the secure attribute. Like this: ``` Set-Cookie:SessionCookie=xxxxxxxxxx; SameSite...
null
CC BY-SA 4.0
null
2023-03-04T09:15:09.003
2023-03-04T09:15:09.003
null
null
68,490
null
75,634,684
1
null
null
0
10
What is the correct way to include Bootstrap styles inside a TCPDF page? I tried including the file in the normal way, but the page did not work at all. ``` <?php function fetch_data() { $output = ''; $connect = mysqli_connect("localhost", "root", "", "testing"); $sql = "SELECT * FROM tbl_e...
how to include bootstrap css inside TCPDF php page
CC BY-SA 4.0
null
2023-03-04T09:13:36.630
2023-03-04T09:13:36.630
null
null
21,130,546
[ "php", "bootstrap-5", "tcpdf" ]
75,634,685
1
null
null
0
16
I need help implimenting FIR Filter on a video sequence, in hope to stabilized the video. There's a Kelman filter algorithm that uses a prediction and update stage on a prev and current pixels, with something called kalman gain looks like that: ``` for i = 2:frames for j = 1:height for k = 1:wid...
Stabilize image sequence using FIR Filter instead of Kalman Filter
CC BY-SA 4.0
null
2023-03-04T09:13:44.197
2023-03-04T09:13:44.197
null
null
21,330,551
[ "image-processing", "filtering", "signal-processing" ]
75,634,692
1
null
null
-1
14
I have a web application with multiple users. If a user wants to use it, he has to authenticate and gets a session cookie. The httponly flag is set. The application has also an api interface that accepts the same cookie. The interface accepts json-requests and answers with json. URL is https://www.example.com(:443) My ...
Redirect a session cookie to Angular and use it
CC BY-SA 4.0
null
2023-03-04T09:15:16.240
2023-03-04T09:15:16.240
null
null
18,098,083
[ "angular", "typescript", "web", "session-cookies" ]
75,634,691
1
null
null
-3
26
Дополните данный код, используя параллельную итерацию сразу по трем спискам (функцию zip), так чтобы он вывел информацию о регионе в следующем формате: <регион>: столица <Город>, население <количество> тыс. человек. ``` regions = ["Томская область", "Московская область", "Ленинградская область"] cities = ["Томск", "Мос...
Дополнить код на питоне
CC BY-SA 4.0
null
2023-03-04T09:15:11.293
2023-03-04T09:15:11.293
null
null
21,330,573
[ "python" ]
75,634,694
1
null
null
0
9
Some days ago, my computer got a BSOD that sat: Attempted execute of noexeute memory in windows. And then I made it restart and did not think of it. After 2 minutes, there was a new BSOD: Page fault in nonpaged area. After that, whenever I boot my computer, it comes with a BSOD before it even boot with various error co...
Windows BSOD constant coming with with various errors
CC BY-SA 4.0
null
2023-03-04T09:15:42.020
2023-03-04T09:15:42.020
null
null
17,731,910
[ "memory", "windows-11", "bsod", "blue-screen-of-death" ]
75,634,698
2
null
75,633,689
0
null
``` import pandas as pd df = pd.DataFrame({'Date': ['03 Mar 2023 00:00', '03 Mar 2023 00:00', '03 Mar 2023 00:00', '03 Mar 2023 00:00', '03 Mar 2023 00:00', '2020-02-07 00:00:00', '2020-02-02 22:00:00', '2020-02-02 00:00:00', '2020-02-02 22:00:00']}) r = pd.to_...
null
CC BY-SA 4.0
null
2023-03-04T09:16:34.833
2023-03-04T09:16:34.833
null
null
13,460,543
null
75,634,695
2
null
75,634,576
1
null
One Liner: ``` [[int(x) for x in input().split()] for i in range(6)] 5 2 6 1 7 3 4 2 10 5 12 4 #[[5, 2], [6, 1], [7, 3], [4, 2], [10, 5], [12, 4]] ``` You can generalize `6` to `n` in `range` Here, I am using a list comprehension instead of `list(map(int, input().split()))`. A link to document [https://python-refere...
null
CC BY-SA 4.0
null
2023-03-04T09:16:00.683
2023-03-04T09:36:59.647
2023-03-04T09:36:59.647
13,086,128
13,086,128
null
75,634,696
1
null
null
0
30
I have a large dataset of stock prices that includes columns for open, close, high, low, datetime, and volume. I'm attempting to merge 15 rows of data from a specific time period into a single row. However, when I try to do this, my machine crashes. The dataset has 800k rows and my machine has 20 GB of RAM, but it's st...
How to merge n number of rows into one faster with less memory utilization by adding columns with the same name as original but with name_1, name_2?
CC BY-SA 4.0
null
2023-03-04T09:16:31.273
2023-03-04T10:31:46.677
2023-03-04T10:31:46.677
18,070,351
18,070,351
[ "python", "pandas", "dataframe", "group-by" ]
75,634,708
1
null
null
0
13
Validation is not working on spring boot I write regex for phone number but is not working on entity class. Is it true to write exception on service class for control the phone input?
How should i write regex and @pattern
CC BY-SA 4.0
null
2023-03-04T09:17:56.273
2023-03-04T10:10:25.823
2023-03-04T10:10:25.823
19,785,671
19,785,671
[ "java", "mysql", "spring-boot", "validation" ]
75,634,703
1
75,634,802
null
0
20
``` class ErrorReportView(View): def get(self, request, *args, **kwargs): return HttpResponse('Hello, World!') @method_decorator(csrf_exempt) def post(self, request, *args, **kwargs): return HttpResponse('Hello, World!') ``` [](https://i.stack.imgur.com/Cxmnw.png) I use Postman, but I get...
csrf_exempt for class based views
CC BY-SA 4.0
null
2023-03-04T09:17:13.250
2023-03-04T09:40:39.820
2023-03-04T09:40:39.820
17,562,044
2,202,718
[ "python", "django", "django-views" ]
75,634,701
2
null
75,633,285
1
null
I haven't tried your code but the problem is most probably due to the fact you don't return the [promise chain](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining) in your Cloud Function. You should either do: ``` return axios({ // <====== See return here // ... }) .then(resp...
null
CC BY-SA 4.0
null
2023-03-04T09:16:53.610
2023-03-04T09:16:53.610
null
null
3,371,862
null
75,634,705
1
null
null
-2
35
iam learning python so sorry for not coding the pythonic way iam trying to make a merge sort but its not working i looked at the debugger it seems the problem it doesnt do line `arr1[i] = arr[s+i]` and jumb back to the mergeSort function idont know why ``` def mergeSort(arr,s,e): if s >= e: return mid = s + (e-...
simple merge sort in python
CC BY-SA 4.0
null
2023-03-04T09:17:23.867
2023-03-04T09:43:42.890
2023-03-04T09:33:48.020
20,185,574
17,895,424
[ "python", "mergesort" ]
75,634,711
2
null
75,634,065
1
null
CORS support is on the GKE Gateway roadmap, but for now you will need to add support from within your application backend.
null
CC BY-SA 4.0
null
2023-03-04T09:18:19.937
2023-03-04T09:18:19.937
null
null
5,529,712
null
75,634,706
2
null
75,633,369
1
null
I think what you're looking for is a grid for your form inputs. In MudBlazor this is the MudGrid. I don't have MudBlazor installed on my travelling machine, so here's some example code I lifted straight from here - [https://www.mudblazor.com/components/autocomplete#usage](https://www.mudblazor.com/components/autocompl...
null
CC BY-SA 4.0
null
2023-03-04T09:17:26.700
2023-03-04T14:42:13.673
2023-03-04T14:42:13.673
13,065,781
13,065,781
null
75,634,710
1
null
null
-2
41
Perspective, I am rather new to coding all together let alone python. I am fiddling with a practice little project I made for myself. My Code: ``` level_5_max_evocation = 30 evocation = 20 evocation_scaling = random.randrange(0, 101) skill = "evocation" if evocation == level_5_max_evocation: pass elif evocation_sc...
How to increase variable
CC BY-SA 4.0
null
2023-03-04T09:18:14.443
2023-03-04T09:38:38.893
2023-03-04T09:38:38.893
15,620,411
21,330,604
[ "python", "python-3.x" ]
75,634,713
2
null
75,634,636
0
null
You can use a timer like ``` from datetime import datetime start = datetime.now() input() print(datetime.now - start) ``` Other solutions would be to use non-blocking input: [Non-blocking console input?](https://stackoverflow.com/questions/2408560/non-blocking-console-input) or threading
null
CC BY-SA 4.0
null
2023-03-04T09:18:50.747
2023-03-04T09:18:50.747
null
null
14,902,846
null
75,634,709
1
null
null
0
6
Bash completion is working normally with Click 7.0 Environment: Python version: 3.9.9 Click version: 7.0 Bash version: 5.1.8 Bash-completion:2.11 This is the code: ``` import click @click.group(cls=clicommon.AliasedGroup, context_settings=CONTEXT_SETTINGS) @click.pass_context def cli(ctx): """SONiC command line - '...
[python-click]bash completion not working after upgrade click version from version 7.0 to 8.1.3
CC BY-SA 4.0
null
2023-03-04T09:18:01.247
2023-03-04T09:18:01.247
null
null
21,330,572
[ "click", "bash-completion" ]
75,634,697
1
null
null
-1
21
I'm beginner full stack developer. And i'm causing problems with code when I try to get data of books list by title, author, and isbn number!. Idk how to solve this. here is all of lists and codes. pls help me [code needs to be changed ``` public_users.post("/register", (req,res) => { //Write your code here ret...
Getting book list by isbn number, author, titles and reviews
CC BY-SA 4.0
null
2023-03-04T09:16:34.537
2023-03-04T09:49:55.763
2023-03-04T09:46:19.310
21,330,610
21,330,610
[ "node.js", "express", "frontend" ]
75,634,717
1
null
null
0
8
[enter image description here](https://i.stack.imgur.com/wMtTk.png)[enter image description here](https://i.stack.imgur.com/qOptN.png) tried to initially program it without using this
Why is this pointer being used, couldn't we directly access by creating object. Why is id initialized outside as 0?
CC BY-SA 4.0
null
2023-03-04T09:19:48.857
2023-03-04T09:21:51.310
2023-03-04T09:21:51.310
21,330,569
21,330,569
[ "pointers", "static", "this" ]
75,634,716
2
null
75,633,807
1
null
Figured it out with the help of @sunderam dubey ``` def rant_category(request, slug): rants = Rant.objects.filter(categories__slug__contains=slug) context = {"slug": slug, "rants": rants} return render(request, "rants/rant_category.html", context) ``` ``` {% for rant in rants %} {{rant.title}} ...
null
CC BY-SA 4.0
null
2023-03-04T09:19:14.703
2023-03-04T09:49:55.657
2023-03-04T09:49:55.657
17,562,044
11,630,148
null
75,634,718
2
null
75,634,552
1
null
The reason the timer is restarting after page refresh is that the countdown time is not being saved anywhere. Each time the page is refreshed, the script starts the countdown from the beginning again. So if you want your data to remain the same after the refresh, it should be stored in the `localStorage` or `sessionSto...
null
CC BY-SA 4.0
null
2023-03-04T09:20:00.623
2023-03-04T09:20:00.623
null
null
21,291,633
null
75,634,719
1
null
null
-1
9
Visual Studio auto complete is not working after updating to 17.5. Also, when googling the preference view looks different and the "Insert matching brace" is greyed out. See picture. I did read somewhere that this may be a bug but I am not sure and I have not been able to find that info again. Anyone that can advise me...
Visual Studio auto complete is not working - VS 17.5 Mac/Unity3d
CC BY-SA 4.0
null
2023-03-04T09:20:11.933
2023-03-04T09:20:11.933
null
null
418,332
[ "macos", "visual-studio" ]
75,634,714
2
null
69,932,281
0
null
It would seem that there is no centralized way of finding an authoritative list of users on the "server" side (cluster), versus suggestions previously stated on this page of seeing which users an individual client has set in their `.kube/config` file. As, the documentation states: > It is assumed that a cluster-indepen...
null
CC BY-SA 4.0
null
2023-03-04T09:19:03.307
2023-03-04T09:24:49.963
2023-03-04T09:24:49.963
7,780,908
7,780,908
null
75,634,723
1
null
null
0
8
I wonder if there is a plugin for Intellij that allows to keep the matching words highlighted with a different color and as Notepad++ allows it, I find it very useful. Here is an image to illustrate what I mean. ![enter image description here](https://i.stack.imgur.com/AZgfd.png) I was looking for the plugin and I have...
Is there an intellij plugin that allows to keep matching words with a color highlighted?
CC BY-SA 4.0
null
2023-03-04T09:21:00.997
2023-03-04T09:22:33.033
2023-03-04T09:22:33.033
7,508,700
21,330,571
[ "notepad++", "highlight", "intellij-plugin" ]
75,634,715
2
null
75,634,105
0
null
No simple way to get it right whenever required, keep foreign character Strings completely separate from other String encodings, and use render GUI components for individual Strings encoded. note: the font chosen for use should have an image of the character to render to screen but may not carry such image unless it wa...
null
CC BY-SA 4.0
null
2023-03-04T09:19:03.393
2023-03-04T11:46:33.127
2023-03-04T11:46:33.127
5,354,987
5,354,987
null
75,634,724
2
null
75,634,689
1
null
Your branch specification is incorrect. `main/master` means "a branch called `main/master`, and that doesn't seem to exist on your repo. What you probably want is [an array](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_runbranchesbranches-ignore): ``` on: push: ...
null
CC BY-SA 4.0
null
2023-03-04T09:21:02.653
2023-03-04T09:21:02.653
null
null
5,774,952
null
75,634,721
2
null
42,328,956
0
null
This is a useful bit of code, but needed a couple of alterations to work for me. 'CUEFILE' is not set, but as it invariably has the same basename as the .m4d file, we can use that. I also added a for loop to automatically convert all files in the dir. Works well. ``` #!/bin/bash for i in *.m4b; do INFILE=$i ; ...
null
CC BY-SA 4.0
null
2023-03-04T09:20:51.783
2023-03-04T09:20:51.783
null
null
21,330,622
null
75,634,720
2
null
75,633,382
0
null
It is not because of the multiline of the textField, but because of the axis. If you remove the linelimit the problem remains, but if you change the axis the textfield now "works" (it is not multiline). The same thing happens if you use a `TextEditor`. However, if you want a multiline textField with the ability to dism...
null
CC BY-SA 4.0
null
2023-03-04T09:20:39.853
2023-03-04T09:20:39.853
null
null
13,302,643
null
75,634,726
1
null
null
0
17
> Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project Gestion_pfe: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.1.1' due to an API incompa...
ComponentLookupException in Maven project
CC BY-SA 4.0
null
2023-03-04T09:21:06.673
2023-03-04T20:33:46.387
2023-03-04T20:33:46.387
2,985,643
16,837,466
[ "java", "maven", "plugins", "netbeans", "war" ]
75,634,725
2
null
75,625,994
0
null
The problem is often that only 25% of the available memory is available to heap space by default. In our project, we're using the below setting for `JAVA_TOOL_OPTIONS` as default. ``` env: - name: JAVA_TOOL_OPTIONS value: "-XX:InitialRAMPercentage=15 -XX:MaxRAMPercentage=50" ``` If you still experience OOM a...
null
CC BY-SA 4.0
null
2023-03-04T09:21:05.113
2023-03-04T10:17:44.213
2023-03-04T10:17:44.213
14,072,498
14,072,498
null
75,634,727
2
null
75,634,101
0
null
You could add the `sed` command into the file and execute from there Using GNU `sed e` option which executes the command that is found in pattern space and replaces the pattern space with the output. ``` $ sed 's~^~sed -i.bak "/line/a\/to be added/e" ~' input_file ``` Or ``` $ sed 's~^~sed -i.bak "/line/a\/to be add...
null
CC BY-SA 4.0
null
2023-03-04T09:21:38.713
2023-03-04T09:21:38.713
null
null
16,372,109
null
75,634,729
2
null
75,634,689
-1
null
If your branch is called `main/master` it's correct, instead if your branch is just `master` or `main` I think you need to change the `ON` condition like following ``` name: Lint and Test Charts on: push: branches: - main - master pull_request: branches: - main - master paths: ...
null
CC BY-SA 4.0
null
2023-03-04T09:21:49.487
2023-03-04T09:21:49.487
null
null
17,871,774
null
75,634,700
1
null
null
0
27
I am using this configuration in my proguard task: ``` task proguard(type: ProGuardTask) { dependsOn tasks.extractJar verbose injars "${buildDir}/extracted/BOOT-INF/classes" outjars "${buildDir}/obfuscatedClasses.jar" // Automatically handle the Java version of this build. if (System.getProperty...
Obfuscated Jar is not running
CC BY-SA 4.0
null
2023-03-04T09:16:50.647
2023-03-04T09:16:50.647
null
null
11,651,437
[ "java", "spring-boot", "gradle", "proguard", "obfuscation" ]
75,634,733
2
null
75,634,689
-1
null
Edit value of key `branches` to ``` on: push: branches: - main - master pull_request: branches: - main - master paths: - 'open-electrons-monitoring/**' - "!**/README.md" - "!images/**" - "!README.md" ```
null
CC BY-SA 4.0
null
2023-03-04T09:22:33.910
2023-03-04T09:22:33.910
null
null
15,137,107
null
75,634,731
2
null
73,250,422
0
null
In [the docs](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-s3/index.html#troubleshooting), they give this example code: ``` try { const data = await client.send(command); // process data. } catch (error) { const { requestId, cfId, extendedRequestId } = error.$$metadata; console.log({ re...
null
CC BY-SA 4.0
null
2023-03-04T09:22:13.897
2023-03-04T09:22:13.897
null
null
1,672,995
null
75,634,732
2
null
75,631,999
2
null
To answer the original question, all you need to do is to properly format your value. In SwiftUI you can do it directly in the `TextField` ``` Text(newLatitude.formatted(.number.precision(.fractionLength(2...)))) ``` The open ended range, `2...`, will mean it will use at least 2 decimal digits and up to as many as the...
null
CC BY-SA 4.0
null
2023-03-04T09:22:27.060
2023-03-04T09:22:27.060
null
null
9,223,839
null
75,634,730
2
null
75,617,875
0
null
Currently Flutter does not have a way to change the color of Stepper Line because the color of stepper line is static. [image of source code](https://i.stack.imgur.com/xnhjd.png) You can create a custom stepper: [https://nakib.medium.com/making-a-custom-number-stepper-in-flutter-e8bdde04b3f](https://nakib.medium.com/ma...
null
CC BY-SA 4.0
null
2023-03-04T09:21:54.790
2023-03-04T09:24:24.097
2023-03-04T09:24:24.097
20,218,946
20,218,946
null
75,634,728
1
null
null
0
16
I am implementing a Data Layer function using Dapper to get a set of ordered entries. ``` using (var connection = new OracleConnection(getConnString()) { var fields = connection.Query<string>($"MyPackage.FieldsStoredProcedure", param: null, commandType: CommandType.StoredProcedure"); } ``` So at this point i get an...
C# IDbConnection Query - Guarantee of ordering?
CC BY-SA 4.0
null
2023-03-04T09:21:41.130
2023-03-04T14:55:57.057
2023-03-04T14:55:57.057
13,112,196
13,112,196
[ "c#", "sql", ".net", "dapper", "idbconnection" ]
75,634,738
1
null
null
0
8
before termination, I need to do cleanup in all workers but the worker doesn't receive the or . Here is the code that I have added ``` const cluster = require("cluster"); const cpus = require("os").cpus().length; const server = require("./server.js"); class ClusterServer { constructor() { if (cluster.isMaster) ...
How to handle SIGTERM in Cluster Workers?
CC BY-SA 4.0
null
2023-03-04T09:23:47.860
2023-03-04T09:23:47.860
null
null
21,325,320
[ "node.js", "docker", "server", "sigterm", "node-cluster" ]
75,634,736
2
null
75,621,163
0
null
``` builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer(o => { o.RequireHttpsMetadata = false; o.SaveToken = true; o.TokenValidationParameters = new TokenValidationParameters { ValidateIssuer = true, ValidateAudience = true, ValidateLifetime = ...
null
CC BY-SA 4.0
null
2023-03-04T09:23:08.277
2023-03-04T09:23:08.277
null
null
16,711,559
null
75,634,742
2
null
75,634,302
0
null
I suppose the second line with "self.emp_id" is a typo: ``` else: self.emp_id =prefix2+'{0:04d}'.format(1) self.emp_id ```
null
CC BY-SA 4.0
null
2023-03-04T09:23:58.457
2023-03-04T09:23:58.457
null
null
13,510,123
null
75,634,741
2
null
75,634,661
0
null
As you can see in your IntelliJ screenshot, you're using `localhost` as the host name. In your code, you use `Database` which only works on the Docker network. Not from the host. Change your code to use `localhost` as well.
null
CC BY-SA 4.0
null
2023-03-04T09:23:53.603
2023-03-04T09:23:53.603
null
null
3,924,803
null
75,634,739
2
null
75,390,108
0
null
I had the same issue and waslosing my mind over it as well! However I made it work now with `Theme.Material3.Light.NoActionBar` - - `implementation 'com.google.android.material:material:1.9.0-alpha02'`- `id 'com.android.application' version '7.4.2' apply false``id 'com.android.library' version '7.4.2' apply false` Afte...
null
CC BY-SA 4.0
null
2023-03-04T09:23:48.810
2023-03-04T10:22:06.810
2023-03-04T10:22:06.810
8,770,808
8,770,808
null
75,634,744
2
null
75,634,330
-1
null
The problem is at the UserService, javascript is having an error with the `await` inside `findAll()`, try: ``` class UserService { public async findAll(){ return await UserRepository.find({}) } } export default UserService; ``` And then await it at the Controller: ``` const users =...
null
CC BY-SA 4.0
null
2023-03-04T09:25:12.603
2023-03-04T09:35:50.790
2023-03-04T09:35:50.790
15,212,198
15,212,198
null
75,634,735
2
null
75,634,144
3
null
The error "" typically occurs when there is an issue with the data types of the values being used in a string format or conversion. In your code, the error is likely occurring due to the following reasons: 1. The value of m might not be a valid float value. Double-check the input value of m and make sure it is a valid...
null
CC BY-SA 4.0
null
2023-03-04T09:23:00.437
2023-03-04T09:49:53.723
2023-03-04T09:49:53.723
3,546,454
3,546,454
null
75,634,712
1
75,635,678
null
1
29
I have `jQuery` validation library used on application, but when I validate before submit is not working. When inspect the element its said line 1 of this file below, need some help. ``` $(function (){ $("#personalloan").validate({ rules: { firstName:{ requuire:true }, lastName:{...
Validation form before submit is not showing any validation messages?
CC BY-SA 4.0
null
2023-03-04T09:18:27.703
2023-03-05T00:16:51.717
2023-03-05T00:16:51.717
594,235
21,326,620
[ "jquery", "forms", "jquery-validate" ]
75,634,745
1
null
null
0
27
I want my code to detect my input even if it's Uppercase or Lowercase as true but I don't know how to, someone help me, thanks, here's some examples if you guys are confused: Input: `y or Y` Output: `True` Code: ``` string start = "y"; // I want y to be detected as true even if the input is uppercase Y if (Console.Read...
Accept Uppercase and Lowercase as True in C#
CC BY-SA 4.0
null
2023-03-04T09:25:29.397
2023-03-04T09:25:29.397
null
null
21,317,709
[ "c#" ]
75,634,750
2
null
24,835,386
0
null
An old question, but in your gitconfig file if you add these two lines it'll do the trick: ``` [commit] verbose = true ```
null
CC BY-SA 4.0
null
2023-03-04T09:26:51.637
2023-03-04T09:26:51.637
null
null
11,099,842
null
75,634,740
2
null
75,537,810
-1
null
Registering as a service is not a good idea, because: - - - This is not your way if you want to run PostgreSQL built into your application. Using `pg_ctl` is better. Your best bet would be to use the "standard" library, i.e. libpq to control the server. But lipq doesn't have such an API, because regular applications S...
null
CC BY-SA 4.0
null
2023-03-04T09:23:50.710
2023-03-04T09:40:42.523
2023-03-04T09:40:42.523
7,883,447
7,883,447
null
75,634,747
1
null
null
-1
32
I have this dict: ``` d={0:[1,2,3,None,1],1:[1,2,4,0,3],2:[4,6,2,3,4],3:[4,2,6,1,2],4:[2,2,6,2,None]} ``` I save it: ``` fo=open("test.json","w") json.dump(d,fo, sort_keys=True, indent=2, separators=(',', ': ')) fo.close() ``` I restore it: ``` fi.open("test.json","r") g=json.load(fi) ``` And g becomes: ``` {'0': [1...
I want to get keys as integers using json serialization and deserialization and python
CC BY-SA 4.0
null
2023-03-04T09:25:57.087
2023-03-04T09:29:19.060
null
null
1,815,739
[ "python", "json", "dictionary", "serialization", "deserialization" ]
75,634,734
1
null
null
1
13
In my existing Vue project I deleted the `node_modules` directory, and now I am re-installing the packages using the `yarn install`, but facing the following error- [](https://i.stack.imgur.com/Pfmum.png) After reading [this article](https://www.arahansen.com/the-ultimate-guide-to-yarn-lock-lockfiles/) (scroll down t...
Why running yarn install is giving an error- Integrity check failed for "yargs-parser"
CC BY-SA 4.0
null
2023-03-04T09:22:33.947
2023-03-04T09:30:49.860
2023-03-04T09:30:49.860
11,834,856
11,834,856
[ "node.js", "vue.js", "npm", "installation", "yarnpkg" ]
75,634,746
1
null
null
4
23
I would like to know how can a domain event be implemented (in DDD) if it is not a natural result of an aggregate's state change. I will borrow the example of [this](https://verraes.net/2015/01/messaging-flavours/) post. So lets say that we need an event like: which could be a product of some modelling we have done (e...
Can a domain event be emitted without being part of an aggregate state change (DDD)
CC BY-SA 4.0
null
2023-03-04T09:25:55.433
2023-03-04T09:58:38.167
null
null
9,897,423
[ "events", "aggregate", "domain-driven-design", "event-driven", "domain-events" ]
75,634,751
2
null
75,634,517
1
null
You can add validation in your dashboard view: ``` # Check if the user has staff status to view the page. if request.user.is_staff: # your code... else: messages.error(request,'You do not have the necessary permissions to view this page.') ```
null
CC BY-SA 4.0
null
2023-03-04T09:27:10.390
2023-03-04T09:27:10.390
null
null
20,191,839
null
75,634,755
2
null
75,634,661
0
null
You exposed ports to host so you should use `localhost` as db_host to connect. If you trying to connect from another container you should use `host.docker.internal` as db_host to connect.
null
CC BY-SA 4.0
null
2023-03-04T09:27:55.083
2023-03-04T09:27:55.083
null
null
21,017,967
null
75,634,759
2
null
75,634,747
3
null
You can use a dictionary comprehension to create a new dictionary with integer keys: ``` g = {int(k): v for k, v in g.items()} ```
null
CC BY-SA 4.0
null
2023-03-04T09:29:19.060
2023-03-04T09:29:19.060
null
null
16,127,735
null
75,634,752
2
null
75,634,121
1
null
I first time misunderstood your question. Your problem is that you are changing the widgets in the consumer. To solve this problem, you need to either use a GlobalKeys for each case in the consumer, for example: ``` switch (modal.activeIndex) { case 0: return const BasicDetails(key: _basicKey); ...
null
CC BY-SA 4.0
null
2023-03-04T09:27:17.547
2023-03-04T09:27:17.547
null
null
8,135,850
null
75,634,757
2
null
75,592,071
0
null
This is a compatibility issue with PHP 8 that needs to be fixed by the H5P core team (or patched by yourself). Please refer to [https://github.com/h5p/moodle-mod_hvp/pull/472](https://github.com/h5p/moodle-mod_hvp/pull/472).
null
CC BY-SA 4.0
null
2023-03-04T09:28:53.483
2023-03-04T09:28:53.483
null
null
9,453,575
null
75,634,758
2
null
75,571,594
0
null
I have found the way to use the latest gradle ospackage plugin, it has just changed name from `nebula.ospackage` to `com.netflix.nebula.ospackage` so: ``` plugins { id "com.netflix.nebula.ospackage" version "11.0.0" } ``` works perfectly !
null
CC BY-SA 4.0
null
2023-03-04T09:28:58.030
2023-03-04T09:28:58.030
null
null
9,614,332
null
75,634,743
1
null
null
0
18
I'm trying to deploy `Nuxt.js (2)` SSR app to `Firebase Hosting/Functions`. I'm able to do that, as long as I won't include `nuxt.config.ts` in `functions/src/index.ts`. However, I do have some setup there, such as meta tags, I'd like to push. That's my `nuxt.config.js` file (basically default `Firebase` starter for `....
Nuxt.js problematic nuxt.config.js/ts with Firebase Cloud Functions while deploying ES5/6 modules / compatibility issue
CC BY-SA 4.0
null
2023-03-04T09:24:37.540
2023-03-04T09:24:37.540
null
null
11,127,383
[ "firebase", "ecmascript-6", "google-cloud-functions", "nuxt.js", "ecmascript-5" ]
75,634,760
1
null
null
0
15
I'm programming a register system in javascript, and the problem is that i want to check if the email format is correct so i write if(regEmail.includes("@" + ".com")) but the problem is that i don't know how to check if there is any character from the alphabet after @ and before .com i tried doing if(regEmail.includes(...
how to check if there is any alphabet character after @ and before .com in javascript
CC BY-SA 4.0
null
2023-03-04T09:29:20.910
2023-03-04T09:29:20.910
null
null
21,330,672
[ "javascript", "string", "email", "include", "alphabet" ]
75,634,765
1
75,634,821
null
1
20
Can someone please explain me what is the difference between cy.get(selector).trigger('be.visible') and cy.get(selector).should('be.visible') I've seen that they are working in similar way I and I wanted to know deeper because in official documentation I saw only should('be.visible') is explained.
Trigger vs Should in Cypress
CC BY-SA 4.0
null
2023-03-04T09:29:59.247
2023-03-04T19:48:58.017
2023-03-04T19:48:58.017
19,708,872
13,967,143
[ "cypress" ]
75,634,761
1
null
null
0
13
I'm trying to refresh value of nested widget using Obx Getx flutter. but whenever i try to refresh the value of nested widget they gives me error. ![error which is comes when i try to wrap widget with Obx](https://i.stack.imgur.com/JeOIZ.png) here is my code of widget. ![code of wrap widget with Obx](https://i.stack.im...
Where to set variableObservable for refresh value of nested widget using Obx Getx Flutter
CC BY-SA 4.0
null
2023-03-04T09:29:25.543
2023-03-04T16:07:19.837
2023-03-04T16:07:19.837
16,624,473
20,386,840
[ "flutter", "widget", "flutter-getx" ]