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,637,566
1
null
null
-3
24
i made a registration form in java and want to save the users input into a database i've created. i've tried different methods for both connecting my databse and trying to get data entered on the form to save but none seem to work and im unable to understand where i may be making the error or what is missing. i tried t...
im trying to coonect adatabase to my java login form but it doesnt seem to be working, can anyone see my error
CC BY-SA 4.0
null
2023-03-04T17:57:54.793
2023-03-04T20:26:04.247
2023-03-04T20:26:04.247
5,389,997
20,910,376
[ "java", "mysql" ]
75,637,569
2
null
75,637,511
1
null
The issue is that you're confused about the relative path. `../dataset/leukemia` is relative to the current working directory of the executing shell, the file which is being run. This means that if you run `python src/main.py` from `/Users/John/Desktop/Leukemia`, the CWD will is `/Users/John/Desktop/Leukemia`, and thu...
null
CC BY-SA 4.0
null
2023-03-04T17:58:04.077
2023-03-04T17:58:04.077
null
null
13,376,511
null
75,637,563
2
null
75,637,518
0
null
First, add a `Comparator` parameter to the merge sort functions. ``` public static Ball[] mergeSort(Ball[] list, Comparator<Ball> comp){ Ball[] buffer1 = Arrays.copyOf(list, list.length); Ball[] buffer2 = new Ball[list.length]; Ball[] result = mergeSortInner(buffer1, buffer2, 0, list.length, comp); retu...
null
CC BY-SA 4.0
null
2023-03-04T17:57:38.520
2023-03-04T17:57:38.520
null
null
9,513,184
null
75,637,567
2
null
75,619,623
0
null
That feels like an OOP approach to me (no offence). Don't think that's possible or ever needed (in the world of state machines). You should see the `context` as the state of the machine itself and state transition as a mean to keep that state up to date. State nodes don't have state themselves. If you wanted to underst...
null
CC BY-SA 4.0
null
2023-03-04T17:57:55.550
2023-03-04T17:57:55.550
null
null
1,244,884
null
75,637,576
1
null
null
0
14
I'm writing this shell script to help me automate a few things. I basically input a file name, which my script reads and then commands vim to create and open an empty file( in the name i've just typed in), in which i'll type some info, according to what the file should contain. I'll then save and the script will go ahe...
How do i call vim in my shell script to open with a file name that I've put in?
CC BY-SA 4.0
null
2023-03-04T17:59:31.637
2023-03-04T18:08:18.483
2023-03-04T18:05:19.100
240,443
21,332,731
[ "shell", "vim", "terminal" ]
75,637,572
1
null
null
0
19
I am learning Javascript, and I completed the freeCodeCamp cash register JS project [https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/cash-register](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/javascript-algo...
having trouble with the implementation of a cash register function
CC BY-SA 4.0
null
2023-03-04T17:59:06.607
2023-03-04T18:35:45.513
null
null
21,199,639
[ "javascript", "html" ]
75,637,573
1
null
null
0
17
I want to add missing timestamps in a pcollection. My idea is: 1. Use a state to create a list of all available time steps 2. Infer from the list which time steps are missing 3. Create a pcollection with all the time steps from step 2. 4. Make a union of both pcollections. The problem I am having is with step 2, as ...
Using stateful processing to identify and add missing timestamps in Apche Beam time series (Pcollection)
CC BY-SA 4.0
null
2023-03-04T17:59:13.450
2023-03-05T03:58:37.050
null
null
9,035,157
[ "python", "time-series", "apache-beam", "missing-data", "stateful" ]
75,637,579
1
null
null
0
21
I am trying to build a service where an IAM User can upload data to s3 and then kick off an ECS task to process the data. I want to be able to limit the user from uploading unlimited amounts of data to s3. Is there a way to enforce usage limits on s3 (and other AWS services)? I could not find any S3 policy settings to ...
How to restrict S3 usage for individual IAM user?
CC BY-SA 4.0
null
2023-03-04T17:59:55.207
2023-03-04T23:09:50.840
2023-03-04T23:09:50.840
174,777
4,233,383
[ "amazon-web-services", "amazon-s3", "amazon-ecs" ]
75,637,584
2
null
75,637,264
0
null
Do: ``` RUN bash Miniconda3-py38_23.1.0-1-Linux-x86_64.sh -b ``` See `Miniconda3-py38_23.1.0-1-Linux-x86_64.sh -h`
null
CC BY-SA 4.0
null
2023-03-04T18:00:42.147
2023-03-04T18:00:42.147
null
null
9,072,753
null
75,637,557
1
null
null
2
37
I have here two code so you can help me understand... Well at first my mask colors the "loading" shape. The initials `rgbkmcw` indicate their colors, red, ..., white. These are normal, already the CAPITAL LETTERS, correspond to bold `(red = \e[31;10m; RED = \e[31;1m)`. What I'm looking for is more variety of colors. Se...
Color palette and more scale variations
CC BY-SA 4.0
null
2023-03-04T17:56:40.587
2023-03-04T20:28:54.440
2023-03-04T18:25:37.510
19,051,542
19,051,542
[ "perl", "curses" ]
75,637,577
1
null
null
0
5
anyone can help on how can I implement changing the telegram menu button using PHP, I'm totally new using and understanding it. Any help is well appreciated. TIA. Here's what I'd done, I'm doubting about JSON serialize i'm making here. Looking forward for any help. Here's the API documentation [SetChatMenuButton](https...
Telegram Bot API SetChatMenuButton using PHP
CC BY-SA 4.0
null
2023-03-04T17:59:34.557
2023-03-04T17:59:34.557
null
null
15,828,593
[ "php", "php-telegram-bot" ]
75,637,581
1
null
null
-2
11
I have a social publishing network on wordpress (theunsealed.com) do I need to switch to fully custom to scale? If so what stack? Right now our social network is in buddy press and I find that it doesn't look as nice as it could and is not as smooth for the user as I'd like. And every time we want to change something i...
I have a social publishing network on wordpress do I need to switch to fully custom to scale? If so what stack?
CC BY-SA 4.0
null
2023-03-04T18:00:20.877
2023-03-04T18:00:20.877
null
null
21,332,815
[ "php", "reactjs", "database", "content-management-system", "social-networking" ]
75,637,583
2
null
51,949,430
1
null
With Xcode 13+ no need to work with files/plist manually anymore. You just need to set to the “” setting under build settings. Or click on "Your Target" - General - App Icons and Launch Screen - Include All App Icon Assets. [](https://i.stack.imgur.com/co9RC.png) After that just add icons to xcassets catalog. (For som...
null
CC BY-SA 4.0
null
2023-03-04T18:00:32.620
2023-03-04T18:24:44.977
2023-03-04T18:24:44.977
4,044,555
4,044,555
null
75,637,588
1
null
null
-1
7
my problem is the modelvalidator from fluentValidation is not working in my project, and ModelState.IsValid is always true no matter the state of the validation, im using. Net core 7.0
Fluent api validation always return true for modelstate. Isvalid
CC BY-SA 4.0
null
2023-03-04T18:01:29.013
2023-03-04T18:01:29.013
null
null
19,413,779
[ "c#", "entity-framework", ".net-core", "ef-fluent-api" ]
75,637,586
1
null
null
0
10
I want to use a while loop to check if an input number is less than 100 and more then 9, so i know it has at least one 10, and then repeatingly subtract 10 until the input is less than 10, and so count the number of 10s ``` WHILE((100 > Val) AND (Val > 9)) loop Val <= Val - "00000000000000001010";--10 ...
how to count number of 10s in a std_logic_vector
CC BY-SA 4.0
null
2023-03-04T18:01:15.120
2023-03-04T18:01:15.120
null
null
15,585,644
[ "while-loop", "vhdl", "counter" ]
75,637,580
2
null
75,637,510
4
null
In C++17: ``` testmap.try_emplace("key"); ``` In C++14 or older: ``` testmap.emplace(std::piecewise_construct, std::forward_as_tuple("key"), std::tuple<>{}); ``` --- You code constructs `MyClass` twice: one time you do it manually (`MyClass()`), and the second time `std::map` does it internally (in your case it tr...
null
CC BY-SA 4.0
null
2023-03-04T18:00:18.650
2023-03-04T18:53:04.133
2023-03-04T18:53:04.133
2,752,075
2,752,075
null
75,637,585
1
75,637,805
null
1
33
I want to make a discord bot that would work with data that would be sent from a web application via POST request. So for that I need to make my own API containing that POST request with FastAPI. My question is: how can make my API work with the rest of the code? Consider this example: ``` from fastapi import FastAPI, ...
The rest of the python code doesn't work with FastAPI
CC BY-SA 4.0
null
2023-03-04T18:00:59.440
2023-03-04T20:16:46.633
null
null
19,694,624
[ "python", "fastapi" ]
75,637,589
2
null
75,637,306
0
null
What are you using to host the Custom Login page? When we run application locally and use front-end which access at browser url (default : port 80). When UI makes calls to loacalhost on different port as 9000 then usually you experience these kind of errors. If thats the case you can add an nginx application and define...
null
CC BY-SA 4.0
null
2023-03-04T18:01:29.150
2023-03-04T18:01:29.150
null
null
21,332,372
null
75,637,592
2
null
75,637,511
0
null
Instead of relying on the CWD and how the script is executed, it may be safer to rely on the directory structure and the relative location of the dataset compared to the `main.py` file: ``` if __name__ == '__main__': leukemia_dir = os.path.join(os.path.dirname(__file__), '..', 'dataset', 'leukemia') file_names ...
null
CC BY-SA 4.0
null
2023-03-04T18:02:06.110
2023-03-04T18:07:58.260
2023-03-04T18:07:58.260
2,422,776
2,422,776
null
75,637,591
2
null
75,637,543
0
null
You did not specify the error message clearly, but as per your code you tried using: ``` event = window.read values = window.read ``` Try using the following: ``` while True: event = window.read() values = window.read() if event == sg.WIN_CLOSED: break if event == 'Any_other_event': ...
null
CC BY-SA 4.0
null
2023-03-04T18:01:49.523
2023-03-04T18:35:20.947
2023-03-04T18:35:20.947
53,341
20,816,962
null
75,637,590
2
null
75,637,288
0
null
You may try: ``` =reduce(,split(F3,", "),lambda(a,c,lambda(z,if(z="","No action required",z))(textjoin(", ",1,{a,xlookup(c,H:H,H:H,)})))) ``` - `Column H` [](https://i.stack.imgur.com/RAkx4.png)
null
CC BY-SA 4.0
null
2023-03-04T18:01:39.033
2023-03-04T18:01:39.033
null
null
5,479,575
null
75,637,594
1
null
null
0
13
From anecdotal evidence, I've noticed that CloudFormation updates seem to create new resources and update existing ones before deleting removed resources. However, I haven't been able to find any documented evidence that this is an explicit behavior rather than just a general rule. I'm adding an SQS queue between an S...
Does cloudformation create new resources before deleting old ones?
CC BY-SA 4.0
null
2023-03-04T18:02:18.373
2023-03-04T23:09:00.743
2023-03-04T23:09:00.743
174,777
10,100,823
[ "amazon-web-services", "aws-cloudformation" ]
75,637,571
2
null
75,635,962
0
null
here's an example of how I believe it's a better way to get the expected data, I hope it helps. Edited in more detail for better understanding. ``` select concat( s.firstname , ' ', s.lastname) as name, concat(s.age,'yrs') as Age , CASE WHEN s.sex = 'M' THEN 'Male' ELSE 'Female' END AS Sex ,s.house as Hous...
null
CC BY-SA 4.0
null
2023-03-04T17:58:14.130
2023-03-05T04:38:26.597
2023-03-05T04:38:26.597
21,331,685
21,331,685
null
75,637,598
2
null
75,630,454
0
null
Maybe something like this: ``` function onEdit(e) { const sh = e.range.getSheet(); const cols = [1,2,3]; const offsets = [1,2,3]; const idx = cols.indexOf(e.range.columnStart); if(sh.getName() == "Your Sheet Name" && ~idx && e.range.rowStart > 1) { if(e.value == "FALSE") { e.range.offset(0,offsets[i...
null
CC BY-SA 4.0
null
2023-03-04T18:02:38.227
2023-03-04T18:02:38.227
null
null
7,215,091
null
75,637,593
2
null
75,626,505
0
null
Your question is incomplete as you haven't provided from where the component Podcasts is called in the below code ``` import Podcast from "../podcast/Podcast" import "./podcasts.css" export default function Podcasts({podcasts}) { return ( <div className="podcasts"> {podcasts.map((p)=>( <Podcast pod...
null
CC BY-SA 4.0
null
2023-03-04T18:02:13.807
2023-03-04T18:02:13.807
null
null
16,468,530
null
75,637,595
2
null
75,636,665
2
null
You did not specify how the Unicode is encoded. Since you're talking about bytes and ASCII, I will answer for the most common and accepted encoding, which is UTF-8. The bytes `0xc0`, `0xc1`, and `0xf5` through `0xff` can appear nowhere in a valid UTF-8 sequence. There are many specifc of bytes that also cannot appear ...
null
CC BY-SA 4.0
null
2023-03-04T18:02:20.767
2023-03-04T18:22:32.217
2023-03-04T18:22:32.217
1,180,620
1,180,620
null
75,637,599
2
null
75,637,350
1
null
You have to floor the datetime before extract the time part: ``` # df['datetime'] = pd.to_datetime(df['datetime']) >>> df.groupby(df['datetime'].dt.floor('15T').dt.time)['count'].sum() datetime 07:30:00 1 08:00:00 1 13:30:00 1 19:45:00 1 20:30:00 1 21:30:00 1 22:15:00 1 Name: count, dtype: int64 ``...
null
CC BY-SA 4.0
null
2023-03-04T18:02:39.850
2023-03-04T19:12:55.287
2023-03-04T19:12:55.287
15,239,951
15,239,951
null
75,637,596
1
null
null
-1
19
How to create 1 level array structure using a recursive function from dynamic parents and child? I am trying to create 1 level array structure using the recursive function concept in PHP. Let's say... I will pass an initial array parameter to the function, then a function needs to retrieve the array if there are parent...
How to create 1 level array structure using recursive function from dynamic parents and child given
CC BY-SA 4.0
null
2023-03-04T18:02:21.167
2023-03-04T18:05:44.990
2023-03-04T18:05:44.990
21,332,770
21,332,770
[ "php", "function", "recursion", "parent-child" ]
75,637,587
1
null
null
0
34
I'm trying to make the correlation matrix Here a sample of the dataset. ``` > head(matrix) # A tibble: 6 x 16 # Groups: nquest, nord [6] nquest nord sex anasc ireg eta staciv studio asnonoc2 nace2 nesplav etalav dislav acontrib occnow tpens <int> <int> <dbl> <int> <int> <int> <int> <fct> <int> <int> <...
Error in Correlation Matrix: why deleting NA still doesn't work?
CC BY-SA 4.0
null
2023-03-04T18:01:22.030
2023-03-05T00:43:02.377
2023-03-04T18:07:44.183
19,167,156
19,167,156
[ "r", "dplyr", "correlation", "na", "numeric" ]
75,637,604
2
null
49,501,371
0
null
With Xcode 13+ no need to work with files/plist manually anymore. You just need to set to the “” setting under build settings. Or click on "Your Target" - General - App Icons and Launch Screen - Include All App Icon Assets. [](https://i.stack.imgur.com/co9RC.png) After that just add icons to xcassets catalog. (For som...
null
CC BY-SA 4.0
null
2023-03-04T18:03:47.987
2023-03-04T18:25:17.327
2023-03-04T18:25:17.327
4,044,555
4,044,555
null
75,637,601
2
null
75,637,309
0
null
It has to do with the way you wrote the path: You wrote an absolute path (one that starts with a "/"). Absolute paths get resolved by Live Server relative to the root of the live server (see the `liveServer.settings.root` setting, which by default, is the workspace folder open in VS Code), and relative to the filesyste...
null
CC BY-SA 4.0
null
2023-03-04T18:02:50.070
2023-03-04T18:17:11.173
2023-03-04T18:17:11.173
11,107,541
11,107,541
null
75,637,603
2
null
75,631,463
0
null
Starting page 5, pages seem to be rendered differently and `soup.select('.srp-results li.s-item')` always returns an empty list (of urls). That is why `data` length remains stuck at 300, even though there are more results. So, there is nothing wrong with your code and there is no need to pause for 10 seconds. Leaving t...
null
CC BY-SA 4.0
null
2023-03-04T18:03:25.213
2023-03-04T18:03:25.213
null
null
11,246,056
null
75,637,602
1
null
null
-2
22
``` File "c:\Users\haris\backlog.py\filo6.py", line 20, in <module> data=pandas.read_csv("coordinata.csv",encoding = "ISO-8859-1",delimiter=',') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\haris\AppData\Local\Programs\Python\Python311\Lib\site-packages\pandas\ut...
pandas.open_csv('file_name') showing error
CC BY-SA 4.0
null
2023-03-04T18:03:16.883
2023-03-04T18:15:58.730
2023-03-04T18:10:28.150
7,432
21,332,596
[ "python", "excel", "pandas", "csv" ]
75,637,608
2
null
71,080,115
0
null
You have to install snap-store: ``` sudo snap install snap-store ``` Then Log Out or reboot your linux pc. Then your issue will be solved.
null
CC BY-SA 4.0
null
2023-03-04T18:05:04.650
2023-03-04T18:05:04.650
null
null
19,017,848
null
75,637,600
1
null
null
-1
27
I have a python Flask application that serves a website and does a bunch of other things, like creating a new instance of the Tor process, and looping 5 times printing and renewing the IP. ``` def get_tor_session(): session = requests.session() session.proxies['https'] = 'socks5://localhost:9050' session.pr...
New identify for Tor (signal NEWNYM) not working with Python and UWSGI
CC BY-SA 4.0
null
2023-03-04T18:02:43.193
2023-03-04T19:43:35.003
2023-03-04T19:43:35.003
400,617
13,181,058
[ "python", "flask", "uwsgi", "tor" ]
75,637,606
2
null
75,637,409
0
null
> Why does this happen? Because GitHub Pages does not support browser history like your browser does. In our case, the route [https://tomerpacific.github.io/starter-project/about](https://tomerpacific.github.io/starter-project/about) doesn't help GitHub Pages understand where to point the user (since it is a frontend r...
null
CC BY-SA 4.0
null
2023-03-04T18:03:58.827
2023-03-04T18:03:58.827
null
null
13,488,990
null
75,637,609
1
null
null
0
8
I just Wanna to know, Can I use Visual sutdio remote debugger for blazor ASP.net core host? I have tried many methods, when I released my Server Project first, and it was successfully hosted on the remote host. I can use Visual studio Attach to Process on remote Server w3wp.exe, But It just can work on Sever-side file....
Blazor wasm .Net Core host Remote debugger Client-side
CC BY-SA 4.0
null
2023-03-04T18:05:23.823
2023-03-04T18:05:23.823
null
null
14,258,569
[ "asp.net", "blazor", "blazor-webassembly", ".net-7.0" ]
75,637,610
1
null
null
-2
20
I have just downloaded Android Studio for Linux from [developer.android.com](https://developer.android.com) and noticed that when I write comments in Cyrillic, all the words (except for short ones) are underlined in green, as if they were typos. I don't have this problem in IntelliJ IDEA (which I downloaded from Snap, ...
Android Studio highlights comments written in Cyrillic as typos
CC BY-SA 4.0
null
2023-03-04T18:05:27.857
2023-03-05T00:21:32.813
2023-03-04T18:10:33.583
17,846,993
17,846,993
[ "android-studio", "intellij-idea" ]
75,637,607
1
null
null
0
10
Is there any way I can add a constraint to a type class function dynamically? Let's say my type class takes a function of type ``` type FieldTraverseFn :: Row Type -> (Type -> Type) -> Type type FieldTraverseFn row m = forall sym a row' . IsSymbol sym => Row...
Adding Constraint Dynamically to a function
CC BY-SA 4.0
null
2023-03-04T18:04:19.120
2023-03-04T18:04:19.120
null
null
11,057,391
[ "functional-programming", "purescript" ]
75,637,613
1
null
null
0
5
I am trying to create new project on Intellij using Maven. But I am not getting Quick Archetype Option. Can anyone suggest what could be the reson for this? Below is the screenshot of the option that I am getting: [](https://i.stack.imgur.com/exJMS.png)
Unable to get Quick Archetype Option for maven project in Intellij
CC BY-SA 4.0
null
2023-03-04T18:05:50.413
2023-03-04T18:05:50.413
null
null
7,073,291
[ "maven", "intellij-idea", "project", "maven-archetype" ]
75,637,614
2
null
75,603,787
0
null
``` { provide: 'SocialAuthServiceConfig', useValue: { autoLogin: false, providers: [ { id: GoogleLoginProvider.PROVIDER_ID, provider: new GoogleLoginProvider( 'clientId', { oneTapEnabled: false, // <===== default is true } ) }, ...
null
CC BY-SA 4.0
null
2023-03-04T18:05:59.233
2023-03-04T18:05:59.233
null
null
21,332,863
null
75,637,616
2
null
19,284,012
0
null
It's an issue regarding compatibility just like it was mentioned above. Experiencing the same error you can simply downgrade to another working version that will work until the issue is fixed 1.4.46, based on Github feedback. :)
null
CC BY-SA 4.0
null
2023-03-04T18:06:12.720
2023-03-04T18:07:50.220
2023-03-04T18:07:50.220
15,069,316
15,069,316
null
75,637,611
1
null
null
-1
14
What I want to do is take the text from a Wikipedia page and etch it into stone with a CNC. Conceptually it's not that hard, you scrape the text, convert it to vectors, and use a CAM tool to make gcode. But doing it in an automated way with a of text seems tricky, and I'm not super familiar with all the tools. Most of...
How can I convert a web page to gcode for CNC engraving?
CC BY-SA 4.0
null
2023-03-04T18:05:35.270
2023-03-04T18:05:35.270
null
null
183,662
[ "svg", "fonts", "g-code", "typesetting", "cnc" ]
75,637,605
1
null
null
-1
16
I have a html which the layout have divide into two column just like ``` <div class="card-body"> <div class="row"> <div class="col-md-10"> <form id="bookform"> <div class="row"> <div class="col"> <label for="datefrom" class="form-label">Dat...
button make the same position with other element
CC BY-SA 4.0
null
2023-03-04T18:03:50.600
2023-03-04T18:37:32.293
null
null
17,194,305
[ "html", "css", "twitter-bootstrap", "bootstrap-5" ]
75,637,618
2
null
63,598,208
0
null
Just a quick update on this as it's a few years old (but still very helpful!) I've made one small change to @Topaco. CryptoJS doesn't use .create, so instead you need init a new WordArray(). ``` decryptString(key: string, ciphertextB64: string) { // Base64 encoded ciphertext, 32 bytes ...
null
CC BY-SA 4.0
null
2023-03-04T18:06:43.643
2023-03-04T18:06:43.643
null
null
5,807,412
null
75,637,622
2
null
75,637,572
0
null
Just remove the parentheses, so that you pass a function reference and not a function call: ``` button.onclick = cashRegisterFunction ```
null
CC BY-SA 4.0
null
2023-03-04T18:07:01.630
2023-03-04T18:35:45.513
2023-03-04T18:35:45.513
4,861,760
4,861,760
null
75,637,623
2
null
48,683,320
0
null
I am just using normal javascript. So to fix this I did the following: [](https://i.stack.imgur.com/oRT1U.png)
null
CC BY-SA 4.0
null
2023-03-04T18:07:02.633
2023-03-04T18:07:02.633
null
null
9,782,828
null
75,637,620
1
null
null
0
8
I'm currently learning backend and I am working on a Node TypeScript project using Fastify. I am facing the following problem: ``` Argument of type '(request: PasswordRequest, reply: FastifyReply) => Promise<void>' is not assignable to parameter of type 'RouteHandlerMethod<RawServerDefault, IncomingMessage, ServerRespo...
Fastify not recognizing custom request
CC BY-SA 4.0
null
2023-03-04T18:06:53.860
2023-03-04T18:06:53.860
null
null
17,126,698
[ "typescript", "types", "request", "backend", "fastify" ]
75,637,619
1
75,637,921
null
1
25
Given a tensor shape (d, d, ..., d, d) and a tensor of sorted indices with shape (d, d, ..., d) I want to reorder the indices of A using the sorted indices in I. The first dimensions of tensors and are equal, the ()-th dimension of tensor A can be any size. # Example Given and : ``` >>> A.shape torch.Size([8, ...
Pytorch: How to reorder the tensor by given sorted indices
CC BY-SA 4.0
null
2023-03-04T18:06:44.343
2023-03-05T01:47:31.123
2023-03-05T01:47:31.123
21,332,762
21,332,762
[ "python", "pytorch", "tensor", "tensor-indexing" ]
75,637,615
2
null
75,545,756
0
null
You can either send the original file as a string, or if that is not an option, you can format the object with this function: ``` const object = {a:[15,3457,15,"afbsv",[4,34,36],{ l: "dsfvszd", qwe: 238475463, iuggbsf: ["AEfs",], afafwwa:{afafwafaw:{r:"4"}} }]} document.write(`<pre>${format(object)}</pre>`); ...
null
CC BY-SA 4.0
null
2023-03-04T18:06:02.480
2023-03-04T18:06:02.480
null
null
13,189,488
null
75,637,612
1
null
null
0
32
Every time an user wants to create a new product the fetch function runs twice. I tried adding a console.log when the user clicks on the button, and it only returns once but the fetch still runs twice. : ``` function handleSubmitNewItem(e) { e.preventDefault(); const dataToInsert = { product_name: newItem...
Why is the fetch function running twice?
CC BY-SA 4.0
null
2023-03-04T18:05:40.550
2023-03-04T18:05:40.550
null
null
19,098,865
[ "javascript", "reactjs", "http", "next.js", "fetch" ]
75,637,626
2
null
75,626,709
0
null
Not Cadence expert but since you tagged it also with "temporal-workflow" can give it a shot :) The TimerStarted->Fired events seem to come from your workflow code. Check if you have workflow.Sleep in your code or create a timer and wait for it to complete in code. After the timer fires you have a decision task that tim...
null
CC BY-SA 4.0
null
2023-03-04T18:07:28.310
2023-03-04T18:07:28.310
null
null
1,572,920
null
75,637,628
2
null
27,723,580
0
null
Use "RUN command" (Ctrl+Shift+P on Windows) [](https://i.stack.imgur.com/H5UUJ.png) Then Use commands: `Use horizontal panel layout` [](https://i.stack.imgur.com/Ykijd.png) Command to change layout verticaly: `Use vertical panel layout`, or `Use automatic panel layout` to return default setting.
null
CC BY-SA 4.0
null
2023-03-04T18:07:31.850
2023-03-04T18:07:31.850
null
null
6,021,496
null
75,637,617
2
null
75,636,231
0
null
1. GAE Standard for Python 3 uses an entrypoint in your app.yaml file. If you don't specify one, dev_appserver.py will use a default of gunicorn -b :$PORT main:app (see documentation). 2. From the above, it means you'll have to 'tell main.py to route to different files if certain conditions (url paths) are met'. This ...
null
CC BY-SA 4.0
null
2023-03-04T18:06:39.677
2023-03-05T04:29:09.800
2023-03-05T04:29:09.800
15,211,203
15,211,203
null
75,637,630
2
null
75,637,370
0
null
The red circle is not an error. Hovering with the mouse over the circle shows you "No newline at end of file". It is simply a hint for exactly that. Since the representation shown is a difference representation of the different versions of the file, git/github needs to find a way to represent this fact, otherwise there...
null
CC BY-SA 4.0
null
2023-03-04T18:07:58.997
2023-03-04T18:07:58.997
null
null
20,124,484
null
75,637,627
1
null
null
0
29
``` import './App.css'; import CreateBug from './CreateBug'; import { BrowserRouter as Router,Route,Routes } from 'react-router-dom'; import Button from '@mui/material/Button'; function App() { return ( <div className="App"> <Router> <Routes> <Route path="/createBug" element={<CreateBug/>}...
I'm not able to route to another page
CC BY-SA 4.0
null
2023-03-04T18:07:31.280
2023-03-04T18:31:47.703
2023-03-04T18:22:57.193
13,488,990
20,352,980
[ "reactjs", "react-router" ]
75,637,632
2
null
75,637,156
0
null
With a single `df.groupby` and constructing inner `pd.Series` with and for each group: ``` cols = ['org','product_version','release_date'] res = df.groupby(cols).apply(lambda x: pd.Series({'total': x.index.size} | {k: v for c in x.columns[~x.columns.isin(cols)] ...
null
CC BY-SA 4.0
null
2023-03-04T18:08:17.320
2023-03-04T18:22:05.757
2023-03-04T18:22:05.757
3,185,459
3,185,459
null
75,637,633
2
null
75,637,576
0
null
`read` expects the name of the variable: ``` read name ``` You invoke it as ``` read $name ``` The shell processes the variable substitution. If `$name` is not set, you just invoke `read`, which stores your answer into `$REPLY`; if `$name` was, e.g. `"George"`, then you are reading into the variable `$George`.
null
CC BY-SA 4.0
null
2023-03-04T18:08:18.483
2023-03-04T18:08:18.483
null
null
240,443
null
75,637,624
1
null
null
0
15
I'm using some modified code I found online to query one of my Outlook folders that currently has 1 email in it with a .csv attachment: `TEST.CSV` ``` # use MAPI name space $outlook = new-object -com outlook.application; $mapi = $outlook.GetNameSpace("MAPI"); # go to Inbox folder (6) $olDefaultFolderInbox = 6 $inbox ...
Saving an Outlook email attachment with Powershell
CC BY-SA 4.0
null
2023-03-04T18:07:21.303
2023-03-04T18:07:21.303
null
null
2,648,504
[ "powershell", "outlook" ]
75,637,625
1
null
null
0
13
I tried to get data form the queue I create a heap memory to stored a data `uint8_t *data6; // global` ``` status = xTaskCreate(print_task, "print_task", 250, NULL, 2, &handle_print_task); configASSERT(status == pdPASS); queue_print = xQueueCreate(20, sizeof(uint8_t *)); ``` I received some data from Interrupt U...
RTOS: Could not take the data for queue
CC BY-SA 4.0
null
2023-03-04T18:07:22.827
2023-03-04T18:07:22.827
null
null
19,648,755
[ "memory", "queue", "stm32", "freertos", "rtos" ]
75,637,636
2
null
75,637,561
0
null
Multiple problems with this code, 1. Not sure why you have a function (main) in the middle of your block of code. what is the purpose? 2. why do you have a return statement in the middle of your block? 3. I wouldn't use "0" as a key. but maybe try something like this: ``` const todo = () => { let value = document...
null
CC BY-SA 4.0
null
2023-03-04T18:08:50.400
2023-03-04T18:08:50.400
null
null
12,271,569
null
75,637,637
2
null
75,637,139
0
null
> @Bryan Oakley suggested a `place` you can use `place_forget`.As you suggested the icon label isn't able to hide. I need the label to hide and unhide whenever I like with the position saved Add two buttons one `show()`(unhide) show and `hide()`. Don't use wildcard `from tkinter import *` Snippet: ``` import tkinter as...
null
CC BY-SA 4.0
null
2023-03-04T18:08:51.243
2023-03-04T18:08:51.243
null
null
4,136,999
null
75,637,640
2
null
75,632,573
1
null
Following the suggestion made by @tarleb, I added the full filter path (from the project directory) to the YAML. During rendering, that produced the following error: "Error running filter _extensions/pandoc-ext/section-bibliographies/section-bibliographies.lua: cannot open _extensions/pandoc-ext/section-bibliographies/...
null
CC BY-SA 4.0
null
2023-03-04T18:09:13.187
2023-03-04T18:09:13.187
null
null
4,476,230
null
75,637,621
1
null
null
-1
21
I searched a lot and didn't find it, I made a registration system with a database in json everything is fine to register a student and consult it in the json file, but when I register more than one student and I go to consult it, I have an error see img.[enter image description here](https://i.stack.imgur.com/AmixD.png...
Python Error when querying more than one list in Json file
CC BY-SA 4.0
null
2023-03-04T18:06:54.367
2023-03-05T01:13:34.353
2023-03-05T01:13:34.353
21,332,834
21,332,834
[ "python", "json" ]
75,637,641
1
null
null
-1
20
I'm having difficulties understanding how the RDS service of AWS works pricing wise, specifically for the general purpose SSD (gp2). Right now, AWS is saying that I'm using 30 GB a month of general purpose storage. I ran the following query in pgAdmin after connecting to the database: `SELECT pg_size_pretty( pg_databas...
AWS RDS gp3 storage
CC BY-SA 4.0
null
2023-03-04T18:09:14.483
2023-03-04T21:59:58.350
null
null
21,332,842
[ "amazon-web-services", "amazon-rds" ]
75,637,638
2
null
75,612,395
2
null
Changing the display while keeping the nature of the data is exactly the role of the column option [render](https://datatables.net/reference/option/columns.render). ``` library(DT) js <- JS( "function(data, type, row, meta) {", " if(type === 'display' && data > 10) {", " let sn = {};", " [sn.coeff, sn.e...
null
CC BY-SA 4.0
null
2023-03-04T18:08:56.357
2023-03-04T18:08:56.357
null
null
1,100,107
null
75,637,634
1
null
null
1
23
The example below shows that perfect-scrollbar is not working with `.scrollTo()`. It works with the `scrollTop` property, however there is no animation in that case. ``` var el = document.querySelector('.container'); Ps.initialize(el); function scrollMeTo() { el.scrollTo({ left: 0, top: 200, behavior: ...
jQuery perfect-scrollbar plugin scrollTo not scrolling
CC BY-SA 4.0
null
2023-03-04T18:08:37.343
2023-03-04T18:20:41.243
2023-03-04T18:20:13.557
13,376,511
1,009,466
[ "javascript", "html", "css", "perfect-scrollbar" ]
75,637,643
1
null
null
0
17
Some unexpected events occurred when using cross-rs to compile rust The source code is here: [https://github.com/IvanGao01/cnosdb/tree/2d870495aa65e3432755ad0bbc6a02bd957cd922](https://github.com/IvanGao01/cnosdb/tree/2d870495aa65e3432755ad0bbc6a02bd957cd922) Execute the following command to compile 1. Build image `...
Compile the rust program with cross-rs
CC BY-SA 4.0
null
2023-03-04T18:09:19.290
2023-03-04T21:31:08.380
null
null
19,638,065
[ "linux", "macos", "rust" ]
75,637,635
1
null
null
0
16
I have a pyspark logic and I am trying to optimize the code to improve its performance. `levels_dtf` and `training_dtf` are read from sources ``` levels_dict = levels_dtf.drop("regressor").distinct().collect() levels_info = [x.asDict() for x in levels_dict] output = [] for lev_info in levels_info: training_...
Pass a dataframe inside a map function
CC BY-SA 4.0
null
2023-03-04T18:08:49.380
2023-03-04T18:08:49.380
null
null
848,510
[ "python", "apache-spark", "pyspark", "apache-spark-sql" ]
75,637,646
2
null
74,666,262
0
null
Add the following NuGet packages to your project: ``` Microsoft.Extensions.Configuration Microsoft.Extensions.Configuration.Json ``` appsettings.json ``` { "MySetting": "Hello World!", "MyOtherSetting": 123 } ``` Initialize appsettings.json ``` using Microsoft.Extensions.Configuration; public partial class MyFor...
null
CC BY-SA 4.0
null
2023-03-04T18:09:47.877
2023-03-04T18:09:47.877
null
null
2,240,406
null
75,637,648
1
null
null
0
9
I am trying to run a curl command while sending a file as an input to the url For example I have a curl command : ``` `curl -s -X POST "dummy/url" -H Content-Type:text/xml --data-binary @dummy.xml` ``` How do I run this command through Java and sent the file as an input to the command
Trying to run a curl command through Java - How to tag a file as an input through the command
CC BY-SA 4.0
null
2023-03-04T18:09:52.647
2023-03-04T18:09:52.647
null
null
21,332,786
[ "java", "curl" ]
75,637,651
2
null
75,607,397
1
null
RecordSet2 is just a "addtional" "type" of variable, and has ZERO relatonship to the number of reocrdsets you want to open. So, you are free to do this ``` Dim rst1 As DAO.Recordset Dim rst2 As DAO.Recordset Dim rst3 As DAO.Recordset '.etc. etc. etc. Set rst1 = CurrentDb.OpenRecordset("tblHotels")...
null
CC BY-SA 4.0
null
2023-03-04T18:10:23.197
2023-03-04T18:10:23.197
null
null
10,527
null
75,637,649
2
null
65,074,811
1
null
[Jupyter Notebook plugin](https://github.com/spyder-ide/spyder-notebook#spyder-notebook-plugin) works on Spyder 5.4.0. Tested with plugin 0.4.0 of Sept 2022. After installing the package using Conda, nothing seems to have changed and opening a Jupyter files just opens a text file, without interpreting any markdown insi...
null
CC BY-SA 4.0
null
2023-03-04T18:10:15.260
2023-03-04T18:34:34.880
2023-03-04T18:34:34.880
774,575
774,575
null
75,637,652
1
75,638,093
null
0
12
[enter image description here](https://i.stack.imgur.com/gICC1.jpg) [enter image description here](https://i.stack.imgur.com/QdviD.jpg) [enter image description here](https://i.stack.imgur.com/EWfZT.jpg) Speech_to_text- 2.7.0 Flutter version- 3.3.10 Dart version- 2.18.6 DevTools version- 2.15.0 minSdkVersion 31 targetS...
how to add speech_to_text flutter plugin in project app properly?
CC BY-SA 4.0
null
2023-03-04T18:10:23.247
2023-03-04T19:14:21.277
2023-03-04T18:10:50.673
20,925,441
20,925,441
[ "flutter", "flutter-dependencies", "speech-to-text" ]
75,637,650
1
null
null
-1
33
I am writing an application that needs to find the correct data from a PDF. I am trying to capture the strings following 'User Name:' and 'User Email:' This is what I currently have: ``` Regex userRegex = new Regex(@"User Name: (?<name>[^:]+) User Email: (?<email>[^:]+)") ``` This is an example of the part of the PDF ...
Anyone know why this regex isn't working?
CC BY-SA 4.0
null
2023-03-04T18:10:17.463
2023-03-04T18:15:36.260
2023-03-04T18:15:36.260
11,683
19,922,584
[ "c#", "regex", "pdf" ]
75,637,645
1
null
null
0
37
i have compile libmodplug library. and i have couple change. but it has error in static inline initialize. i use c++17 in stdafx.h ``` #if defined(_WIN32) || defined(__CYGWIN__) # if defined(MODPLUG_BUILD) && defined(DLL_EXPORT) /* building libmodplug as a dll for windows */ # define MODPLUG_EXPORT __declspec(dllexp...
unresolved external symbol __declspec(dllimport) + static initialize c++17
CC BY-SA 4.0
null
2023-03-04T18:09:41.367
2023-03-05T03:08:13.380
2023-03-05T03:08:13.380
19,771,654
19,771,654
[ "c++" ]
75,637,574
1
null
null
-4
13
``` { "current_page": 1, "per_page": 100, "next_page": null, "previous_page": null, "total_pages": 1, "total_count": 23, "checks": [ { "id": 230610, "name": "Kentico Kontent (docs.wiise.com) - Kentico - Digital", "type": "api", "frequen...
Filters Needs to be done based on the tags name
CC BY-SA 4.0
null
2023-03-04T17:59:21.777
2023-03-04T18:00:06.587
2023-03-04T18:00:06.587
13,376,511
21,332,805
[ "javascript", "json" ]
75,637,639
1
null
null
0
9
I am using spring boot 3 with Jpa Specifications for build a dynamic query, Paging and Fetch Join together in order to avoid N+1 query problem. My User entity is ``` @Entity @Table(name = "users") public class User implements UserDetails, Serializable { @Id @GeneratedValue(strategy = GenerationType.UUID) ...
Spring Data 3 FETCH JOIN with Paging and Specifications is not working properly it is paging in memory
CC BY-SA 4.0
null
2023-03-04T18:09:03.290
2023-03-04T18:09:03.290
null
null
8,212,115
[ "java", "spring-boot", "hibernate", "spring-data-jpa" ]
75,637,659
2
null
75,637,520
0
null
If you were to google ip 127.0.0.1 You would get `The IP address 127.0. 0.1 is a special-purpose IPv4 address and is called the localhost or loopback address. All computers use this address as their own, but it doesn't let computers communicate with other devices as a real IP address does.` That was the first item on m...
null
CC BY-SA 4.0
null
2023-03-04T18:11:02.853
2023-03-04T18:11:02.853
null
null
7,215,091
null
75,637,656
1
null
null
0
25
I have two entities 'First'(to-one) and 'Second'(to-many). Parent view contains list of 'First': ``` @FetchRequest( entity: First.entity(), sortDescriptors: [NSSortDescriptor(keyPath: \First.self, ascending: true)] ) ``` Also parent view contains Int number of 'seconds.archived' taken from computed property: ``` exte...
Core Data computed property updated, but view does not
CC BY-SA 4.0
null
2023-03-04T18:10:37.193
2023-03-04T18:10:37.193
null
null
10,187,530
[ "swift", "core-data" ]
75,637,660
2
null
71,020,503
0
null
I think this would be helpfull ``` extension View { @inlinable public func reverseMask<Mask: View>( alignment: Alignment = .center, @ViewBuilder _ mask: () -> Mask ) -> some View { self.mask { Rectangle() .overlay(alignment: alignment) { mask() .blendM...
null
CC BY-SA 4.0
null
2023-03-04T18:11:03.253
2023-03-04T18:11:03.253
null
null
20,148,698
null
75,637,647
1
null
null
0
13
I work on blazor web app with `.net core 7` . I get error when try to pass user name from login page to another page dashboard after use login success. I pass data using session storage from login page to dashboard page . from debugging I check function after login success `SetUserName(UserName)` it set value of user n...
error when pass user name from login page to another page Dashboard?
CC BY-SA 4.0
null
2023-03-04T18:09:49.817
2023-03-04T18:09:49.817
null
null
21,095,797
[ "c#", "asp.net-core", "blazor-server-side", "blazor-webassembly", "asp.net-core-7.0" ]
75,637,657
2
null
75,511,851
0
null
When you run `/usr/bin/jmap -histo:live $jpid && kill $jpid` without the `&` at the end, it means that the `kill $jpid` command will only be executed after the jmap command finishes. However, in this case, the jmap command will not finish because it is waiting for the target process to respond. The jmap command needs t...
null
CC BY-SA 4.0
null
2023-03-04T18:10:38.767
2023-03-04T18:15:39.773
2023-03-04T18:15:39.773
4,388,228
4,388,228
null
75,637,663
1
null
null
-1
13
I just started a new TypeScript project. In my `tsconfig.json` there is an option to set a `target` attribute for what JavaScript version to compile to. My question is what is the most optimal value for the target attribute? When I say optimal I'm considering two main things: - - I want to try and strike a balance wit...
In the tsconfig file in typeScript what is the most optimal javaScript version to compile to?
CC BY-SA 4.0
null
2023-03-04T18:12:10.627
2023-03-04T18:12:10.627
null
null
19,019,306
[ "javascript", "typescript", "performance", "browser-support" ]
75,637,662
1
null
null
-3
25
How to extract multiple objects from an image in Python, cut them out, and save them? Here is an example I want to extract the objects in this image: [example](https://i.stack.imgur.com/xHAuX.png) Is there a way to do this?
extract multiple objects from an image using python
CC BY-SA 4.0
null
2023-03-04T18:12:10.283
2023-03-04T19:44:51.527
2023-03-04T19:44:51.527
21,332,869
21,332,869
[ "python", "image", "opencv", "cv2" ]
75,637,658
1
null
null
0
55
I wrote a function to try and determine the average of all the values entered into an array however it keeps spitting out a value of around 50. There is an easy way around this but I'd really like to know what I'm going wrong. Bear in mind that I'm still learning Delphi so I still have a lot to learn. I was trying to w...
Not able to get average from function
CC BY-SA 4.0
null
2023-03-04T18:11:00.400
2023-03-04T18:59:39.670
null
null
16,937,657
[ "arrays", "function", "delphi" ]
75,637,654
1
null
null
-3
30
I'm currently learning Flask and recently I tried to combine Flask, Folium and Spotify API. I made two python modules: first (named apify_v2) creates a json-file with "available_markets" for the most popular song of an artist; second (named apify_map) creates a map using Folium based on json-file created in first modul...
Python module works flawlessly, but when imported gives a JSONDecodeError
CC BY-SA 4.0
null
2023-03-04T18:10:29.673
2023-03-04T19:43:07.937
2023-03-04T19:43:07.937
20,222,107
20,222,107
[ "python", "folium" ]
75,637,670
2
null
75,637,605
0
null
im not sure if this a good way to do you can add `style` inside the button, it would be like ``` <button class="btn btn-outline-success" style="padding-top: 1rem;"> ``` or ``` <button class="btn btn-outline-success pt-1"> ``` ref: [https://getbootstrap.com/docs/5.0/utilities/spacing/#notation](https://getbootstrap.co...
null
CC BY-SA 4.0
null
2023-03-04T18:13:38.807
2023-03-04T18:13:38.807
null
null
9,267,467
null
75,637,664
1
null
null
0
35
I have been through a number of blogs / SOF posts and even the book. Unfortunately, I must be missing something very basic. > Note: From the comments you all have made, I realize that my Q is incomplete.Apologies. I have added / edited as necessary. Here's the code: The user-defined type is `PerRequestData`. ``` #[deri...
Failing to filter the OK values from a vector of results in Rust
CC BY-SA 4.0
null
2023-03-04T18:12:14.487
2023-03-05T03:18:11.353
2023-03-05T03:18:11.353
2,005,995
2,005,995
[ "rust" ]
75,637,669
1
null
null
0
11
I have installed the k3s using the below command on PC-1 curl -sfL [https://get.k3s.io](https://get.k3s.io) | sh and used the cmd cat /var/lib/rancher/k3s/server/node-token to get the node-token on the PC-2 trying to add the agent node to the cluser using the below cmd as per the [https://dock.k3s.io/quick-start](https...
Install kubernet K3S agent node to the cluser
CC BY-SA 4.0
null
2023-03-04T18:13:28.540
2023-03-04T18:13:28.540
null
null
11,549,616
[ "kubernetes", "google-kubernetes-engine", "kubernetes-ingress", "kubectl" ]
75,637,666
1
null
null
0
11
I have a function in pyspark that working but I want to separate this function into 2 functions. I'm trying to pass the window spark function as an argument to another function. one of the constraints is that my functions receive just columns and not df. first of all this is my dataframe: ``` df2 = df.select(*cols, F.t...
How can I pass pyspark function and use it in another function
CC BY-SA 4.0
null
2023-03-04T18:13:18.157
2023-03-04T18:13:18.157
null
null
20,906,273
[ "python", "apache-spark", "pyspark" ]
75,637,667
1
null
null
-2
32
I have this PostgreSQL table for storing words: ``` CREATE TABLE IF NOT EXISTS words ( id bigint NOT NULL DEFAULT nextval('processed_words_id_seq'::regclass), keyword character varying(300) COLLATE pg_catalog."default", ); insert into words (keyword) VALUES ('while swam is interesting', 'ibm is a comp...
Match whole words in a java list
CC BY-SA 4.0
null
2023-03-04T18:13:19.467
2023-03-04T18:44:12.480
null
null
1,103,606
[ "java" ]
75,637,671
1
null
null
0
10
I'm trying to send a POST request using fetch in react js to a server hosted on EC2 AWS The request works on Postman. However, when I try from the React App I received No `'Access-Control-Allow-Origin' header is present on the requested resource` Here is my code: ``` const options = { method: "POST", headers: {...
Send a post request to ec2 server in React JS
CC BY-SA 4.0
null
2023-03-04T18:13:43.330
2023-03-04T18:13:43.330
null
null
16,766,418
[ "reactjs", "amazon-ec2" ]
75,637,673
1
null
null
0
17
I changed my app to de scene-approach. Before handling an intent was done correctly, but after changing to the scene-approach the code doesn't work anymore. I found out that I need to implement the handling in willConnectTo: ``` func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptio...
How to handle an intent in iOS when my app is closed?
CC BY-SA 4.0
null
2023-03-04T18:13:54.587
2023-03-04T18:13:54.587
null
null
12,620,176
[ "ios", "swift" ]
75,637,672
2
null
75,637,627
0
null
Your `header` element should not be a child of Router. Try this: ``` function App() { return ( <div className="App"> <header className="App-header"> <p> BUGHOUND </p> <Button variant="contained" >Create a bug</Button> </header> <Router> <Routes> ...
null
CC BY-SA 4.0
null
2023-03-04T18:13:44.817
2023-03-04T18:13:44.817
null
null
11,203,680
null
75,637,668
1
null
null
0
15
I am working on a project in which I want to use JavaScript to pull up a map and put markers on a map when a location is chosen from a drop down menu. I have a refresh button to update the map location when a selection from the drop down menu is chosen. So far everything is looking good but I am having trouble with the...
JavaScript Refresh button not refreshing the map
CC BY-SA 4.0
null
2023-03-04T18:13:25.253
2023-03-05T00:55:30.477
2023-03-05T00:55:30.477
4,346,415
4,346,415
[ "javascript", "mapping" ]
75,637,677
2
null
75,626,551
0
null
I've managed to fix the problem. By default (even if you are using SELECT TOP 1), the `FOR JSON AUTO/PATH` clause surrounds the result with square brackets. So, in my case instead of `"Attribute": [{"Id": 141, "Name": "Inspection date", "DataTypeId": 5 }]` I expected to have `"Attribute": {"Id": 141, "Name": "Inspectio...
null
CC BY-SA 4.0
null
2023-03-04T18:14:10.057
2023-03-04T18:14:10.057
null
null
8,916,057
null
75,637,678
2
null
75,637,474
0
null
That's because you're refreshing the widget when this was not built yet. You'll need to wait until the first frame is loaded, like this: ``` @override void initState() { WidgetsBinding.instance.addPostFrameCallback((_) { if (mounted) { context.read<CampaignProvider>().getCampaigns(); } });...
null
CC BY-SA 4.0
null
2023-03-04T18:14:18.300
2023-03-04T18:14:18.300
null
null
666,221
null
75,637,680
1
null
null
0
20
I wanna create a website that allows users to create an account , and be able to post on it. Now I have a one year experience in front-end web dev, i know html/css/js I can create basic websites such as portfolio website ...ect. So what should I do next in order to be able to create a full website that interacts with t...
What technologies and programming languages should I learn to do this?
CC BY-SA 4.0
null
2023-03-04T18:14:39.947
2023-03-05T02:50:18.143
null
null
15,437,368
[ "deployment", "backend" ]
75,637,675
2
null
75,637,627
0
null
`BrowserRouter` is for wrapping routes and as it is mentioned in the error : > [header] is not a <Route> ``` <Router> <Routes> <Route path="/createBug" element={<CreateBug />} /> </Routes> </Router> ``` and move : ``` <header className="App-header"> <p>BUGHOUND</p> <Button variant="contained">Create a bug<...
null
CC BY-SA 4.0
null
2023-03-04T18:13:57.510
2023-03-04T18:31:47.703
2023-03-04T18:31:47.703
13,488,990
13,488,990
null