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,624,567
2
null
75,619,912
0
null
You can use the [Image Capture Web API](https://w3c.github.io/mediacapture-image/#imagecaptureapi) to set/get UVC controls. Here's a demo I've been maintaining that lets you play in Chrome browser with those that are supported by your USB camera: [https://beaufortfrancois.github.io/sandbox/image-capture/playground.html...
null
CC BY-SA 4.0
null
2023-03-03T08:05:44.123
2023-03-03T08:05:44.123
null
null
422,957
null
75,624,570
2
null
75,624,351
3
null
As mentioned in the comments, at the time of this writing, Ubuntu 22.04 only has Qt 6.2.4. See [https://launchpad.net/ubuntu/+source/qt6-base/6.2.4+dfsg-2ubuntu1](https://launchpad.net/ubuntu/+source/qt6-base/6.2.4+dfsg-2ubuntu1) and [https://packages.ubuntu.com/jammy/qt6-base-dev](https://packages.ubuntu.com/jammy/qt6...
null
CC BY-SA 4.0
null
2023-03-03T08:06:28.047
2023-03-03T08:16:48.527
2023-03-03T08:16:48.527
11,107,541
11,107,541
null
75,624,574
2
null
66,476,204
0
null
[ApiExplorerSettings(IgnoreApi = true)] I have controller methods that are not end-points and they din't have any HttpGet or HttpPost at the top. I've added [ApiExplorerSettings(IgnoreApi = true)] at each controller method, which does not act as end-point and it worked as it should be. The issue is also discussed here:...
null
CC BY-SA 4.0
null
2023-03-03T08:07:17.563
2023-03-03T08:07:17.563
null
null
11,864,595
null
75,624,575
1
null
null
-1
9
For My project I Need a Scheduler. I Using Angular Framework. Please Introduce a Free Component Or Package For Persian Calendar jalali
angular scheduler for jalali [persian] calendar
CC BY-SA 4.0
null
2023-03-03T08:07:29.387
2023-03-03T08:07:29.387
null
null
21,003,193
[ "angular", "calendar", "scheduler", "jalali-calendar" ]
75,624,572
1
75,624,677
null
0
17
it is my code: ``` // import 'package:calculator/add.dart'; // import 'package:calculator/divide.dart'; // import 'package:calculator/multiple.dart'; // import 'package:calculator/subtract.dart'; import 'package:calculator/calculator.dart'; //top level or global variable int number = 5; class test{ int a = 10; //in...
error in dart constructors can't have a return type
CC BY-SA 4.0
null
2023-03-03T08:07:10.607
2023-03-03T08:19:59.637
null
null
4,717,154
[ "android-studio", "dart", "void" ]
75,624,571
1
null
null
0
42
I use query and find..limit methods, every thing work fine but when I use `limit(req.query.limit)` and `localhost:8000/api/hotels?featured=true&limit=2` set limit on my api request it give me an empty array here it is my code : ``` export const getHotels = async (req, res, next) => { const { min, max, ...others } = req...
cursor.limit gives me an empty array result
CC BY-SA 4.0
null
2023-03-03T08:06:52.877
2023-03-03T16:06:12.763
2023-03-03T16:06:12.763
1,409,374
19,967,914
[ "javascript", "node.js", "mongodb", "express", "mongoose" ]
75,624,573
1
null
null
0
7
I am relying on a translator as my English skills are limited. I would greatly appreciate your help with the following question. Thank you. After authenticating the user through LDAP during login, I am storing the user information (ID, name) from LDAP in the SecurityContextHolder. ``` @Override protected void doFilte...
AuditorAware to store CreatedBy as UUID from Spring Security?
CC BY-SA 4.0
null
2023-03-03T08:07:11.583
2023-03-03T08:07:11.583
null
null
21,324,342
[ "java" ]
75,624,579
1
null
null
0
19
I am currently migrating a windows C++ project to linux, the project uses ucrt and vcruntime libraries, i am looking for its replacement in linux. I am trying to find replacement of ucrt in linux
Is there any library in linux alternative to UCRT?
CC BY-SA 4.0
null
2023-03-03T08:08:01.133
2023-03-03T08:08:01.133
null
null
21,324,446
[ "linux" ]
75,624,580
2
null
75,624,488
0
null
Does the data consist of many small files? On windows the sector size is normally 4096 bytes. If you have many files of a few 1000 bytes (every files will at least use 1 sector) then the rest of the sector is lost (until you remove the file).
null
CC BY-SA 4.0
null
2023-03-03T08:08:14.137
2023-03-03T08:08:14.137
null
null
7,626,797
null
75,624,577
1
75,624,712
null
0
52
I have two arrays(word and translatedWord). They contain words(word array contains words in english and translatedWord contains the same words but in another language ). I want to create an array of objects, each object to have the properties value, translation and id. I solved how I can create an object with the trans...
How can I pass array values to a property of Object?
CC BY-SA 4.0
null
2023-03-03T08:07:43.513
2023-03-03T10:20:56.173
null
null
21,257,378
[ "javascript", "reactjs", "arrays", "react-hooks" ]
75,624,576
2
null
22,394,237
0
null
It doesn't run because, like the rest of the scripts on the page, they've already run and potentially altered the content. This behavior is native to browsers and it's called [back/forward cache](https://web.dev/bfcache/). You can include a [pageshow](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageshow_eve...
null
CC BY-SA 4.0
null
2023-03-03T08:07:32.823
2023-03-03T08:07:32.823
null
null
288,906
null
75,624,578
1
null
null
0
8
I'm having trouble accessing the exposed port of my Dockerized Node.js application in my browser. Whenever I try to access the port, I get a 'socket error' message. I have already allowed incoming traffic on port 8000 using ufw, but the issue still persists. Additionally, I should mention that I have an Apache2 load ba...
I'm having trouble accessing the exposed port of my Dockerized Node.js application in my browser
CC BY-SA 4.0
null
2023-03-03T08:07:46.330
2023-03-03T08:07:46.330
null
null
15,159,541
[ "node.js", "docker" ]
75,624,581
2
null
62,569,037
0
null
Based on new updates on [https://github.com/twbs/rfs/issues/209](https://github.com/twbs/rfs/issues/209). > So RFS is a bunch of logic whose job is to output CSS, and styled-components's job is just to take CSS and do stuff with it under the hood. That means styled-components doesn't actually need to know RFS exists; a...
null
CC BY-SA 4.0
null
2023-03-03T08:08:23.883
2023-03-03T08:08:23.883
null
null
4,718,253
null
75,624,582
2
null
59,247,723
0
null
In my case, I had to replace `localhost` with my host IP address in SQLAlchemy URI, like so: postgresql+psycopg2://username:password@your-host-ip-address:5432/database-name Alternatively you can use `host.docker.internal`, like so: postgresql+psycopg2://username:password@host.docker.internal:5432/database-name Please r...
null
CC BY-SA 4.0
null
2023-03-03T08:08:33.270
2023-03-03T08:08:33.270
null
null
12,346,628
null
75,624,583
1
null
null
-2
16
I am doing search input in Angular. I will take the words entered by the user to another component from the route section and query it in the database, but I could not do the writing to route part. ``` const words=[this.filterText.split(' ').join('+')] console.log(words) this.router.navigate(['src='+{words:JSON.stringi...
Writing the angular route
CC BY-SA 4.0
null
2023-03-03T08:08:53.380
2023-03-03T16:04:20.797
2023-03-03T16:04:20.797
6,584,878
20,701,259
[ "angular", "typescript" ]
75,624,587
2
null
75,624,417
2
null
You can iterate over the keys of `O` and map those to a new type like so: ``` type Derived = { [k in keyof O]: { k: k; v: O[k] }; }[keyof O]; ```
null
CC BY-SA 4.0
null
2023-03-03T08:09:38.730
2023-03-03T08:09:38.730
null
null
711,206
null
75,624,584
2
null
75,616,672
0
null
So after days of research I've [found out](https://developers.google.com/pay/refundable-one-time-payment-code-v2/payment-integrator-refundable-one-time-payment-code-api) that the [workflow](https://developers.google.com/pay/refundable-one-time-payment-code-v2/google-refundable-one-time-payment-code-api/Refund.Flow) is ...
null
CC BY-SA 4.0
null
2023-03-03T08:09:07.067
2023-03-03T08:09:07.067
null
null
20,971,236
null
75,624,568
1
null
null
-2
26
I used NGINX for my node.js server for install an proxy server for reverse port binding And after i created SSL certification using [this tutorial](https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-nginx-for-ubuntu-12-04) This is my nginx status ``` ● nginx.service - The nginx HTTP and...
Linux - https server results dangerous after installing ssl certification
CC BY-SA 4.0
null
2023-03-03T08:05:46.397
2023-03-03T08:49:50.543
2023-03-03T08:35:03.573
19,179,045
19,179,045
[ "linux", "amazon-web-services", "nginx", "ssl" ]
75,624,588
2
null
75,368,349
0
null
There is no Tensorflow version available to be compatible with the existing installed python 3.11 in your environment. Please check this tested [build configuration](https://www.tensorflow.org/install/source_windows#cpu) for the same. Please retry by downgrading the `python version to <= 3.10` and let us know if the is...
null
CC BY-SA 4.0
null
2023-03-03T08:09:51.013
2023-03-03T08:09:51.013
null
null
14,290,681
null
75,624,589
2
null
75,433,988
0
null
`Image.ColoneAs<TPixel>` [Documentation](https://docs.sixlabors.com/api/ImageSharp/SixLabors.ImageSharp.Image.html#SixLabors_ImageSharp_Image_CloneAs__1)
null
CC BY-SA 4.0
null
2023-03-03T08:09:56.420
2023-03-03T08:09:56.420
null
null
21,170,321
null
75,624,585
1
null
null
0
52
While migrating from Advantage database to SQL Server using OLEDB providers, a part of my application stopped working. After investigation I have found that the application freezes when I try to iterate using a cursor. Using SQL profiler I found the exact moment when that happens. I think that the problem is that the c...
sp_cursoropen returns empty result set when the query works fine
CC BY-SA 4.0
null
2023-03-03T08:09:08.773
2023-03-03T08:18:27.887
2023-03-03T08:18:27.887
11,651,458
11,651,458
[ "sql-server", "mfc", "oledb", "ole", "database-cursor" ]
75,624,592
1
null
null
-2
57
I'm new to Python and would like to know how to use regex. Suppose I have a patter like ``` alice(ben)charlie(dent)elise(fiona) ``` or ``` grace ``` For the first case, I want to get `<alice,charlie,elise>`. For the second case, I want get `grace`. I tried below, but only got `elise(fiona), elise` ``` import re foo ...
Extract word by regex in python
CC BY-SA 4.0
null
2023-03-03T08:10:12.530
2023-03-03T19:02:29.427
2023-03-03T08:47:51.950
4,865,723
3,529,352
[ "python", "regex" ]
75,624,595
2
null
75,623,402
0
null
You are missing a `map` operator so your return value is not being put back onto the stream: ``` return this.svc.getBook() // remote API .pipe( map((b) => // map here { this.setIntoSessStorage("CachedBook", JSON.stringify(b)); // <-- never save data from here return b; }) ); ```
null
CC BY-SA 4.0
null
2023-03-03T08:10:33.010
2023-03-03T08:10:33.010
null
null
1,188,074
null
75,624,596
2
null
64,573,024
0
null
Signup for free Salesforce Developer trial account to use the API: [https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/quickstart_dev_org.htm](https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/quickstart_dev_org.htm)
null
CC BY-SA 4.0
null
2023-03-03T08:10:34.623
2023-03-03T08:10:34.623
null
null
21,324,472
null
75,624,562
1
null
null
0
52
I am trying to merge the filter activity output which is outside of the ForEach Loop generated result. based on that, I have using item() value to filter again lookup activity output from azure database table. finally i have two kind of out with my hand. one is outside ForEach Loop acivity we have Filter activity provi...
Azure DataFactory Merge Filter Array output to inside ForEach Loop LookUp output values
CC BY-SA 4.0
null
2023-03-03T08:04:58.350
2023-03-03T13:51:40.407
null
null
2,878,290
[ "azure-data-factory" ]
75,624,597
2
null
75,624,566
0
null
you could use [NgComponentOutletDirective](https://angular.io/api/common/NgComponentOutlet) to do that. example ``` <mat-option *ngFor="let option of options" [value]="option.value"> <ng-container *ngIf="option.type=='type1'"> <ng-container *ngComponentOutlet="component1"> </ng-container> </mat-opt...
null
CC BY-SA 4.0
null
2023-03-03T08:10:38.763
2023-03-03T08:10:38.763
null
null
11,078,857
null
75,624,586
2
null
51,854,951
0
null
With spring 5.3.19 and hibernate 5.6.7, it is just a syntax change with respect to the hibernate 3 version. ``` <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> ... <property name="jpaProperties"> <props> ... ...
null
CC BY-SA 4.0
null
2023-03-03T08:09:20.100
2023-03-03T08:09:20.100
null
null
21,156,637
null
75,624,590
2
null
75,384,408
0
null
I created one Azure DevOps pipeline with your yaml script like below:- ``` - main pool: vmImage: ubuntu-latest parameters: - name: text type: string default: test pipeline steps: - script: echo Hello, world! displayName: 'Run a one-line script' - script: | echo Add other tasks to build, test,...
null
CC BY-SA 4.0
null
2023-03-03T08:09:57.567
2023-03-03T08:09:57.567
null
null
20,849,135
null
75,624,605
1
null
null
0
20
I'm quite a newbie in Notion: I'd like to try the integration with GitLab using my GitLab account on gitlab.com. I've tried in a different way but I don't have any results in my Notion when trying the integration. Is there documentation that shows step-by-step what I've to do? Do I need some third part tool (zapier or ...
Notion and GitLab integration: how to do it?
CC BY-SA 4.0
null
2023-03-03T08:11:24.093
2023-03-03T14:54:00.367
null
null
1,323,392
[ "gitlab", "notion" ]
75,624,604
2
null
71,353,838
0
null
> restarted my PC and phone together and then able to connect via WiFi.
null
CC BY-SA 4.0
null
2023-03-03T08:11:21.143
2023-03-03T08:11:21.143
null
null
19,610,655
null
75,624,601
2
null
75,624,355
0
null
`@login_required` means that function `my_view` wont be accessible until you're logged in. you have to pass login url like this to redirect to your login function in case user tries to access that function without loggin in. `@login_required(login_url="/your_login_view/")`
null
CC BY-SA 4.0
null
2023-03-03T08:11:10.270
2023-03-03T08:11:10.270
null
null
16,250,404
null
75,624,591
2
null
75,623,681
0
null
I added a refreshed equation and changed the language you used in your javascript. ``` if (userInput == answer) { newEquation(); document.getElementById("result").innerHTML = "Correct, just one more equation."; setTimeout(function(){document.getElementById("result").innerHTML = ""}, 4000) } ``` In the same...
null
CC BY-SA 4.0
null
2023-03-03T08:10:11.070
2023-03-03T08:10:11.070
null
null
2,159,402
null
75,624,593
2
null
75,622,878
0
null
restructuring this a bit: ``` <!DOCTYPE html> <html> <head> <title>My Page</title> </head> <body> <h1>TESTING</h1> <pre> <?php $test_array = array ( 'bla' => 'blub', 'foo' => 'bar', 'overflow' => 'stack', ); $xml = new SimpleXMLElement('<root/>'); array_walk_recursive($test_array, array ($xml, 'addChild'...
null
CC BY-SA 4.0
null
2023-03-03T08:10:17.473
2023-03-03T08:10:17.473
null
null
10,629,023
null
75,624,598
2
null
75,624,437
2
null
It's not "just ints". EF Core tracks only instances, returned either directly or as part of a non entity class projection. Everything else is not tracked, so yes, `AsNoTracking` is not needed (it is simply ignored for such type of queries). The same btw applies to `Include` - they have effect only for queries returnin...
null
CC BY-SA 4.0
null
2023-03-03T08:10:50.700
2023-03-03T08:10:50.700
null
null
5,202,563
null
75,624,599
2
null
75,624,415
0
null
Well, I can't check the scene for you, but here is the trouble shooting guide with colliders: 1. Check if the collider has rigidbody 2. Check whether your tag is correct 3. Check if the objects are on the same layer(Scrap that, you have a 3D scene) Those are the most common types of problems, but this should get you...
null
CC BY-SA 4.0
null
2023-03-03T08:11:03.993
2023-03-03T08:11:03.993
null
null
15,951,473
null
75,624,602
1
null
null
-6
20
I would like to use the code below on the business site. ``` <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en'}, 'g...
Can I use google translate javascript code in business site?
CC BY-SA 4.0
null
2023-03-03T08:11:16.503
2023-03-03T08:11:16.503
null
null
15,738,200
[ "javascript", "google-translate", "licensing" ]
75,624,606
2
null
75,624,371
0
null
You can add the following rewrite URL, after the first one you wrote I guess ``` var options = new RewriteOptions() .AddRewrite(@"^admin/abc/(.*)", @"admin/abc/$1", true) .AddRewrite(@"^(.*)", @"admin/abc/$1", true); ``` You might consider to get rid of this line of code if you want it to work ``` app.UsePathB...
null
CC BY-SA 4.0
null
2023-03-03T08:11:26.580
2023-03-03T08:59:22.977
2023-03-03T08:59:22.977
10,753,712
10,753,712
null
75,624,611
2
null
75,624,494
0
null
If you directly store the userData which you get from api, you can achieve it as below: ``` const changeUpdateCountry = async (userDataFromApi) => { await AsyncStorage.setItem('user', JSON.stringify(userDataFromApi)); } ```
null
CC BY-SA 4.0
null
2023-03-03T08:11:58.743
2023-03-03T08:11:58.743
null
null
20,860,690
null
75,624,610
2
null
52,540,316
0
null
Gitlab now allows you to have file type variables, here's how I'm using. FYI: In this case a Vuejs app. [](https://i.stack.imgur.com/WCT8s.png) Then on my `.gitlab-ci` file: ``` ... before_script: ... - cp ${PRODUCTION_ENV_FILE} .env.production script: ... - npm ci - npm run build ... ```
null
CC BY-SA 4.0
null
2023-03-03T08:11:58.163
2023-03-03T08:11:58.163
null
null
3,162,303
null
75,624,607
2
null
75,623,413
0
null
Your index.php file routes requests to the /some-directory directory rather than the root directory. Try this: ``` <?php if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) { $uri = 'https://'; } else { $uri = 'http://'; } $uri .= $_SERVER['HTTP_HOST']; header('Location: '....
null
CC BY-SA 4.0
null
2023-03-03T08:11:46.107
2023-03-03T08:11:46.107
null
null
16,127,735
null
75,624,614
2
null
75,610,216
0
null
In Vuetify 3, which is where [its github repo's master](https://github.com/vuetifyjs/vuetify) points at, all SASS/SCSS variables are now exposed through a single file located in `vuetify/_settings`. You can import it like this in your component's style tag: ``` <style scoped lang="scss"> @use 'vuetify/settings' as v;...
null
CC BY-SA 4.0
null
2023-03-03T08:12:07.217
2023-03-03T08:12:07.217
null
null
1,071,518
null
75,624,615
2
null
21,144,655
0
null
I know this is old but it may help some folks out there: The solution to your problem is to prefix your variables, `SCRIPT_PATH` and `SCRIPT_NAME` by `CPACK`. So that it will be `CPACK_SCRIPT_PATH`... That way when CMake process your CmakeLists it knows that your variables should be set for CPack (in other word when ge...
null
CC BY-SA 4.0
null
2023-03-03T08:12:26.780
2023-03-03T08:12:26.780
null
null
7,416,460
null
75,624,612
2
null
58,787,997
0
null
i was upgrading effects to v8 ngrx, and what called my issue, was in effects. @Effect() decorator, when deleted it - problem solved. bad: ``` @Effect() test$ = createEffect(() => this.actions$.pipe(... ``` good: ``` test$ = createEffect(() => this.actions$.pipe(... ```
null
CC BY-SA 4.0
null
2023-03-03T08:12:01.613
2023-03-03T08:12:01.613
null
null
18,680,472
null
75,624,618
2
null
75,624,543
0
null
Use the `GROUP_CONCAT` function to concatenate the last 2 years for each journal anda separated by commas. ``` SELECT journal, GROUP_CONCAT(published_year ORDER BY published_year DESC SEPARATOR ',') AS `Last 2 Year` FROM journals GROUP BY journal ORDER BY journal; ``` db<>fiddle [output](https://dbfiddle.uk/NoOyoBN3)
null
CC BY-SA 4.0
null
2023-03-03T08:12:55.097
2023-03-03T08:12:55.097
null
null
389,985
null
75,624,623
1
null
null
0
6
`{ if (data != null) { getData(ref, data); ``` return loggedInRoute; } return loggedOutRoute; },` ``` I am using the logged in and logged out feature of the route master package, but according to the admin information in my userprovide, I need to redirect to the loggedinroute. I coul...
Adding a route master admin feature
CC BY-SA 4.0
null
2023-03-03T08:13:22.557
2023-03-03T08:13:22.557
null
null
21,321,094
[ "flutter" ]
75,624,622
2
null
75,624,343
-2
null
Set `height: 100%` and `display: table` on `main` class. Remove `height: calc(100vh)`
null
CC BY-SA 4.0
null
2023-03-03T08:13:19.950
2023-03-03T08:13:19.950
null
null
15,393,728
null
75,624,626
1
null
null
0
15
I have a set of bitbake recipes coming from different sources. A file is created from scratch by a first recipe. Another recipe needs to modify this file. How can I order execution of recipes for this? I have full access to modify the second recipeʼs contents but very limited one to the first one. (No code example yet ...
Bitbake force recipe order
CC BY-SA 4.0
null
2023-03-03T08:13:50.827
2023-03-04T08:27:01.587
2023-03-04T08:27:01.587
1,289,675
1,289,675
[ "yocto", "bitbake", "yocto-recipe" ]
75,624,625
2
null
75,624,338
4
null
> Is this all down to compiler magic and its async-await syntactic sugar? In short, yes. Whenever you `await`, the compiler needs to generate a state machine for that method. The task returned from the method then, is one that "represents" the state machine, rather than the single task that you are awaiting. As a resul...
null
CC BY-SA 4.0
null
2023-03-03T08:13:49.203
2023-03-03T08:13:49.203
null
null
5,133,585
null
75,624,627
1
null
null
0
9
I'm experiencing issues with creating a SparkSession, namely I get "RuntimeError: Java gateway process exited before sending its port number" error. Here's the snippet I use: ``` spark = SparkSession.builder \ .master('local[1]') \ .appName('recommendation_engine') \ ...
RuntimeError: Java gateway process exited before sending its port number - when creating SparkSession using pyspark
CC BY-SA 4.0
null
2023-03-03T08:13:55.543
2023-03-03T08:13:55.543
null
null
17,680,006
[ "apache-spark", "pyspark", "config" ]
75,624,628
2
null
75,592,797
0
null
I have found a working solution. The problem was that the pdf got mangled in the jspdf step. Giving the outputPDF method the 'blob' parameter fixed it. The working code is looking as follows: ``` sendPDF() { var opt = { image: { type: 'jpeg', quality: 1 }, html2canvas:...
null
CC BY-SA 4.0
null
2023-03-03T08:13:58.010
2023-03-03T08:13:58.010
null
null
21,302,707
null
75,624,624
1
null
null
0
20
I work with grid elastic search, I need to find point with filter I use filter in box bounds and return one count ![One count in point](https://i.stack.imgur.com/HBg6X.png) My query: ``` { "aggregations": { "zoomed-in": { "filter": { "geo_bounding_box": { "location.geoPoint": { ...
How I can use geo grid with filter query? (Elasticsearch)
CC BY-SA 4.0
null
2023-03-03T08:13:46.873
2023-03-03T09:27:41.070
2023-03-03T09:27:41.070
326,807
16,007,661
[ "java", "elasticsearch" ]
75,624,629
2
null
75,547,938
0
null
Solution was to change: ``` class_name: 'Document::Typed' to class_name: 'Document::Base' ``` then sql was what is defined in scope: ``` "documents"."type" = $1 OR "documents"."type" IN ($2, $3) AND "documents"."case_attachment_flag" = $4 ```
null
CC BY-SA 4.0
null
2023-03-03T08:14:16.560
2023-03-03T08:14:16.560
null
null
1,646,970
null
75,624,630
2
null
57,942,045
0
null
Visual Studio 2022 includes the Tools, Options menu, where you can find the Environment, Keyboard options. You can assign the preferred shortcuts manually, or also select “Visual Studio Code” from the “Apply the following additional keyboard mapping scheme” dropdown list. The above answer from the Microsoft community, ...
null
CC BY-SA 4.0
null
2023-03-03T08:14:19.067
2023-03-03T08:14:19.067
null
null
14,633,616
null
75,624,613
1
null
null
0
22
We have a clustered environment with three nodes, and a CORB routine is used to perform Schematron validation. The validation is successful when executed on one specific ML node, but an error occurs when the routine is directed to another node. The Schematron includes a rule for 'release-date' with a data type of date....
Schematron validation error in clustered environment with multiple nodes
CC BY-SA 4.0
null
2023-03-03T08:12:02.480
2023-03-03T13:03:14.493
2023-03-03T13:03:14.493
4,092,205
1,632,147
[ "marklogic-9", "schematron" ]
75,624,609
1
null
null
1
17
Event : Product Booking is set to be starting on March 9th, and ending on the 11th, but the calendar displays it as ending one day too early for day view grid. But there's no issue in displaying all day with week grid view. I have attached screen shots for reference. Can you please help ? ![Week Grid](https://i.stack....
All day, multi day event is moved to wrong date on calendar for day view
CC BY-SA 4.0
null
2023-03-03T08:11:54.527
2023-03-03T16:27:14.527
2023-03-03T16:27:14.527
5,947,043
21,324,340
[ "javascript", "salesforce", "fullcalendar", "fullcalendar-3" ]
75,624,634
2
null
39,850,118
0
null
In My case it was just firebase options not configured in flutter so I just hand to do flutterfire configure if you do not have flutterfire cli already setup set that up from [here](https://firebase.google.com/docs/flutter/setup?authuser=1&hl=en&platform=ios)
null
CC BY-SA 4.0
null
2023-03-03T08:14:35.093
2023-03-03T08:14:35.093
null
null
6,287,285
null
75,624,636
2
null
75,624,535
2
null
The problem is your completed1 and completed2 values stay true even after resetting mat-horizontal-stepper. You need to reset/set those values to false before stepper.reset();
null
CC BY-SA 4.0
null
2023-03-03T08:14:39.397
2023-03-03T08:14:39.397
null
null
21,258,902
null
75,624,631
2
null
75,604,414
0
null
If you want to access `@PathVariable` in the exception handler, you can simply register its `HandlerMethodArgumentResolver` in the `ExceptionHandlerExceptionResolver` : ``` @Configuration public class Config implements WebMvcConfigurer { @Override public void extendHandlerExceptionResolvers(List<HandlerExcepti...
null
CC BY-SA 4.0
null
2023-03-03T08:14:21.913
2023-03-03T08:14:21.913
null
null
339,637
null
75,624,632
1
null
null
0
11
There is a form that needs to move down when the keyboard is opened. I have an event listener and I change the margin during opening. However, the form initially bounces up before settling into place. ``` return ( <View style={{ ...styles.form, bottom: isKeyboardShown ? -180 : 0 }}> <Text style={styles.formTi...
The bouncing form during keyboard opening (with a change in form size upon opening). React Native
CC BY-SA 4.0
null
2023-03-03T08:14:23.050
2023-03-03T08:14:23.050
null
null
21,238,285
[ "react-native", "keyboard" ]
75,624,617
1
null
null
0
19
I have a RabbitMQ cluster running in Swarm, configured as a global service, which has the hostname set to the host's name: ``` services: rabbitmq: image: "rabbitmq:3-management" hostname: "rabbitmq-{{.Node.Hostname}}" networks: - rabbitmq configs: - source: rabbitmq_config target: ...
RabbitMQ in Docker Swarm: Discover task instances by hostname
CC BY-SA 4.0
null
2023-03-03T08:12:47.063
2023-03-03T11:35:53.357
2023-03-03T11:35:53.357
2,532,203
2,532,203
[ "docker", "rabbitmq", "cluster-computing", "docker-swarm", "service-discovery" ]
75,624,640
2
null
75,572,777
0
null
From the code given, I couldn't find any error that could cause the said error. The error is telling you that something (probably `controller`) has changes (property value has changed for example) and it needs rebuild while the build is building it. I'm not sure where the source of the error without the full code. Howe...
null
CC BY-SA 4.0
null
2023-03-03T08:14:56.810
2023-03-03T08:14:56.810
null
null
15,288,586
null
75,624,643
2
null
75,572,777
1
null
If you are using a , You are updating your value on the initstate method then please use this. ``` initState(){ super.initState(); WidgetsBinding.instance.addPostFrameCallback((_) { // executes after build }); } ```
null
CC BY-SA 4.0
null
2023-03-03T08:15:29.997
2023-03-03T08:15:29.997
null
null
12,187,270
null
75,624,639
2
null
75,621,649
1
null
If you always have the same numbers of panels you can do like this : ``` .v-expansion-panel-text__wrapper { max-height: calc(300px - 64px - (2 * 48px)); } ``` The 48px correspond to inactive panels title height : [https://vuetifyjs.com/en/api/v-expansion-panel/#sass-expansion-panel-title-min-height](https://vuetif...
null
CC BY-SA 4.0
null
2023-03-03T08:14:53.550
2023-03-03T08:14:53.550
null
null
8,356,608
null
75,624,633
2
null
71,449,362
0
null
In my case iterating through translation array worked well until changeLanguage method was triggered. Thing was that for some reason i18n converted array items into properties of an object. Following Mehdi's data from above: This: ``` { "socials": [ { "name": "Github", "url": "#" }, { "name": "Twitt...
null
CC BY-SA 4.0
null
2023-03-03T08:14:33.143
2023-03-03T08:14:33.143
null
null
9,066,893
null
75,624,635
1
null
null
0
29
I am writing export to excel functionality in mvc. Controller CreateExcelDocument method returns actionresult but my downloaded file gets corrupted. ``` public ActionResult CreateExcelDocument(DataSet dataSet) { byte[] data; using (MemoryStream memoryStream = new MemoryStream()) ...
Downloaded excel file gets corrupted in export to excel functionality
CC BY-SA 4.0
null
2023-03-03T08:14:35.083
2023-03-03T08:52:44.050
2023-03-03T08:49:42.297
134,204
15,264,183
[ "c#", "model-view-controller" ]
75,624,642
2
null
75,624,364
2
null
You can make use of [TABLE() FUNCTION](https://livesql.oracle.com/apex/livesql/file/tutorial_GSOTSK8FWLYZOG5CJJ9KPX7RX.html#:%7E:text=What%20Is%20a%20Table%20Function,processed%20in%20a%20SQL%20statement.) in Oracle PLSQL. As you are asking: > Q: I am looking for the fastest way to determine if list of all ids in my_ta...
null
CC BY-SA 4.0
null
2023-03-03T08:15:18.713
2023-03-03T08:15:18.713
null
null
4,473,648
null
75,624,646
2
null
65,821,760
0
null
1. the checked property of the desired checkbox should be declared by default in [your.component.ts] 2. in the template use the checked attribute [demo](https://stackblitz.com/edit/angular-kyf3bo?file=src%2Fapp%2Fhello.component.html,src%2Fapp%2Fhello.component.ts)
null
CC BY-SA 4.0
null
2023-03-03T08:15:47.467
2023-03-03T08:19:24.713
2023-03-03T08:19:24.713
13,663,818
13,663,818
null
75,624,621
1
null
null
-2
27
so I use electron for my project and then I do the html part using bootstrap but my dropdown wont work here, can someone help me with this problem???? ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width...
Hey guys, my bootstrap dropdown wont work here
CC BY-SA 4.0
null
2023-03-03T08:13:05.853
2023-03-03T08:28:40.583
null
null
21,324,449
[ "html", "error-handling", "drop-down-menu", "electron", "bootstrap-5" ]
75,624,644
2
null
75,619,552
0
null
As suggested by Ben, I replaced the USB flash drive with a VDI(Virtual Disk Image). It successfully decompress the archive 3 times in a row. As I said earlier the same code works fine on Linux and macOS with `open()` and `write()`, but what I did not said is that Windows is the only operating system I used in a virtual...
null
CC BY-SA 4.0
null
2023-03-03T08:15:40.433
2023-03-03T10:28:54.743
2023-03-03T10:28:54.743
21,320,326
21,320,326
null
75,624,652
1
null
null
0
5
I am trying to customize the dashboard with some custom menus(that are role based i.e, different for students and teachers), and also remove the left side bar in the dashboard. Is there any way to achieve this? I tried to search in site administration, but didnt succeed[i would like to create the custom menu by removin...
adding custom menus in dashboard in moodle
CC BY-SA 4.0
null
2023-03-03T08:16:20.043
2023-03-03T08:16:20.043
null
null
20,753,384
[ "customization", "dashboard", "moodle" ]
75,624,651
2
null
75,612,840
0
null
``` import socket from OpenSSL import SSL import requests context = SSL.Context(method=SSL.SSLv23_METHOD) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ssl_conn = SSL.Connection(context=context, socket=sock) ssl_conn.set_tlsext_host_name(hostname.encode()) ssl_conn.settimeout(5) ssl_conn.connect((str(ip_add...
null
CC BY-SA 4.0
null
2023-03-03T08:16:07.033
2023-03-03T08:16:07.033
null
null
1,827,937
null
75,624,641
1
null
null
0
13
The task is to generate an app layout based on the folder structure on my server. There are folders and in each of them there are several RMarkdown files. I want a Shiny/Flexdash board app that will automatically take the folder structure with all the files in the folders, create a page for each folder and add an actio...
automatic button creation using Shiny and/or flexdashboard
CC BY-SA 4.0
null
2023-03-03T08:15:11.250
2023-03-03T08:26:44.833
2023-03-03T08:26:44.833
18,470,404
18,470,404
[ "r", "shiny", "ui-automation", "flexdashboard", "action-button" ]
75,624,650
1
null
null
0
22
I have my liquibase changeset as shown below ``` <changeSet id="1739718925270-1" author="abc"> <insert tableName="users"> <column name="user_id" value="abc@gmail.com"/> <column name="created_at" valueComputed="((SYSDATE - date '1970-01-01')*24*60*60*1000)"/> <column name="mod...
Cannot insert data into Oracle DB with SYSDATE sql query
CC BY-SA 4.0
null
2023-03-03T08:16:02.920
2023-03-03T08:20:17.600
2023-03-03T08:20:17.600
20,971,616
20,971,616
[ "sql", "oracle", "oracle-sqldeveloper", "liquibase" ]
75,624,654
2
null
75,269,294
1
null
> You can’t use YAML anchors across multiple files when using the include keyword. Anchors are only valid in the file they were defined in. To reuse configuration from different YAML files, use !reference tags or the extends keyword. From: [https://docs.gitlab.com/ee/ci/yaml/yaml_optimization.html](https://docs.gitlab....
null
CC BY-SA 4.0
null
2023-03-03T08:17:09.660
2023-03-03T08:17:09.660
null
null
938,462
null
75,624,645
2
null
75,624,522
1
null
There's no such function called , in addition the functions cannot be used within a transformation. You rather can use a transformation spec along with function such as ``` [ { "operation": "modify-overwrite-beta", "spec": { "*": { "A": "=split('',@(1,&))", // convert the string into an array...
null
CC BY-SA 4.0
null
2023-03-03T08:15:46.507
2023-03-03T08:37:37.817
2023-03-03T08:37:37.817
5,841,306
5,841,306
null
75,624,649
1
null
null
0
14
I am running application into kubernetes and deploying using HELM charts my env files are in AWS secret Manager and i want to populate env from InitContainers. I have a python scripts that actually pulls secrets from AWS secret manager and create env files but this requires AWS access (I have created Role that specifi...
AWS Access from HELM Charts
CC BY-SA 4.0
null
2023-03-03T08:16:00.243
2023-03-03T08:16:00.243
null
null
4,572,396
[ "amazon-web-services", "kubernetes-helm", "hashicorp-vault", "aws-secrets-manager" ]
75,624,637
1
75,627,692
null
1
32
I am trying to package a python application using PyInstaller. I used the following command: ``` pyinstaller --noconfirm --onedir --windowed --icon "D:/Development/nikke-assistant/images/nikke_icon.ico" --add-data "C:/Program Files/Tesseract-OCR;Tesseract-OCR/" --hidden-import "skimage" --paths "C:/Windows/System32/dow...
What is a .pyci file when compiling executables using pyinstaller?
CC BY-SA 4.0
null
2023-03-03T08:14:48.547
2023-03-03T13:29:13.950
null
null
6,287,809
[ "python", "pyinstaller", "scikit-image", "easyocr" ]
75,624,656
2
null
75,624,450
0
null
You just need to store your lines in an array and use an index to access them e.g. ``` private int[] _xLines = new int[2] { Line1X, Line2X }; private int[] _yLines = new int[2] { Line1Y, Line2Y }; public void AdjustLine(string parameter, int lineNo) { switch (parameter) { case "DecX": if (...
null
CC BY-SA 4.0
null
2023-03-03T08:17:29.877
2023-03-03T09:02:24.180
2023-03-03T09:02:24.180
19,214,431
19,214,431
null
75,624,662
2
null
75,624,494
0
null
Adding Two Lines Of Code Works ``` userdata.user.country = country; // Update country in userdata object await AsyncStorage.setItem('user', JSON.stringify(userdata)); // Save ```
null
CC BY-SA 4.0
null
2023-03-03T08:17:55.920
2023-03-03T08:17:55.920
null
null
21,324,301
null
75,624,659
2
null
75,624,621
0
null
If you open the console, you should see this error: Uncaught TypeError: Cannot read properties of null (reading 'classList'). This is because the dropdown button (a#userInfoDropdown) is not sibling of the dropdown-menu. Try solving the issue putting them next to each other and it should work. Also, few things to mentio...
null
CC BY-SA 4.0
null
2023-03-03T08:17:36.983
2023-03-03T08:28:40.583
2023-03-03T08:28:40.583
15,415,686
15,415,686
null
75,624,657
2
null
75,624,408
-1
null
The ticket was changed... Updated my answer. Depending on your application design you might need a call such as `get_userdata()` after session. You can access session data in your PHP case using the $this->session variable. Use parameters to pass the given variable you want to fetch will simply return it's data. You ar...
null
CC BY-SA 4.0
null
2023-03-03T08:17:31.130
2023-03-03T08:25:50.920
2023-03-03T08:25:50.920
5,795,361
5,795,361
null
75,624,663
2
null
75,624,526
2
null
You can set `legend.margin` to have a negative left-hand side margin. ``` library(tidyverse) ggplot(mtcars, aes(wt, qsec)) + geom_point( aes( size = mpg )) + labs(x = "", y = "", title = 'This is title', subtitle = 'This is subtitle') + guides(size = guide_legend(nrow = 1)) + theme( panel....
null
CC BY-SA 4.0
null
2023-03-03T08:18:07.560
2023-03-03T08:18:07.560
null
null
16,647,496
null
75,624,653
1
null
null
0
29
I want to implement a CustomPainter that draws a clock given images of hour, minute, and second hands, as well as an image of an empty clock face. To account for the possibility of the image being too large or small, I used drawImageRect to resize it to a specific size before drawing it. However, when I drew a second h...
In the custompainter of the fluter, I want to draw two images overlaping
CC BY-SA 4.0
null
2023-03-03T08:16:55.933
2023-03-03T08:16:55.933
null
null
21,065,290
[ "flutter", "flutter-image", "flutter-canvas", "flutter-custompainter" ]
75,624,658
1
null
null
0
29
I'm writing a dynamic physic simulator and I was trying to check the collision. I write something and that works, but sometimes rigid bodies stick together. This is the link of my project: [https://github.com/sharifigiv/MDynamics](https://github.com/sharifigiv/MDynamics) In the `collision.py` file you can see what I do...
how to check collision of two poly rigidbodies?
CC BY-SA 4.0
null
2023-03-03T08:17:33.160
2023-03-03T11:39:29.770
2023-03-03T11:39:29.770
20,185,574
16,799,015
[ "python", "physics" ]
75,624,666
2
null
72,373,821
0
null
Use self checkout in your yaml pipeline.
null
CC BY-SA 4.0
null
2023-03-03T08:18:46.853
2023-03-03T08:18:46.853
null
null
11,709,747
null
75,624,664
2
null
75,624,552
0
null
The script runs before the content is parsed, so run it all the content is parsed by wrapping it in a listener. Try this: ``` <script> addEventListener('DOMContentLoaded', (event) => { const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]') const tooltipList = [...tooltipTriggerLis...
null
CC BY-SA 4.0
null
2023-03-03T08:18:13.623
2023-03-03T08:48:25.740
2023-03-03T08:48:25.740
4,321,299
4,321,299
null
75,624,660
2
null
24,910,766
0
null
To get hold of a View Columns 1. View columns list and their datatype etc ``` SELECT [c].* FROM [INFORMATION_SCHEMA].[COLUMNS] [c] INNER JOIN [INFORMATION_SCHEMA].[TABLES] [t] ON [c].[TABLE_CATALOG] = [t].[TABLE_CATALOG] AND [c].[TABLE_SCHEMA] = [t].[TABLE_SCHEMA] AND [c].[TABLE_NAME] = [t].[TABLE_NAME] ...
null
CC BY-SA 4.0
null
2023-03-03T08:17:39.763
2023-03-03T08:56:23.190
2023-03-03T08:56:23.190
6,012,337
6,012,337
null
75,624,667
1
null
null
1
21
We are using an inherited Agile process which we want to customize in the following way: Add a custom work item type, which is shown as checklist item for a in a kanban board. As seen in the [agile work-item hierarchy documentation](https://learn.microsoft.com/en-us/azure/devops/boards/get-started/plan-track-work?view...
Azure DevOps: Creating custom checklist work item
CC BY-SA 4.0
null
2023-03-03T08:18:49.960
2023-03-03T14:51:37.963
null
null
4,437,616
[ "azure-devops" ]
75,624,669
2
null
18,983,138
0
null
This piece of code worked for me, thanks to [Nick Tomlin](https://stackoverflow.com/a/18983245/12129650) answer: ``` $(document).ready(function(){ let arr = ["a1", "a2", "a3","a1", "a2", "a3","a1", "a2", "a3","a1", "a2", "a3","a1", "a2", "a3"]; let motherArray = new Array(); let arrayPushDone = arr.reduc...
null
CC BY-SA 4.0
null
2023-03-03T08:18:58.917
2023-03-03T08:27:12.310
2023-03-03T08:27:12.310
12,129,650
12,129,650
null
75,624,671
2
null
32,661,484
0
null
If you have tried most of the options, try once running the below command.
null
CC BY-SA 4.0
null
2023-03-03T08:19:18.723
2023-03-03T08:19:18.723
null
null
6,132,761
null
75,624,655
1
null
null
0
15
By reading the documentation of riverpod I wanted to redo the example of the section "third party examples" the example is "firebase phone auth with riverpod" here is the link:[https://docs-v2.riverpod.dev/docs/getting_started](https://docs-v2.riverpod.dev/docs/getting_started) ; and the github repository is the follow...
Flutter Firebase Authentication With Riverpod
CC BY-SA 4.0
null
2023-03-03T08:17:10.710
2023-03-03T08:26:02.173
2023-03-03T08:26:02.173
20,601,450
20,601,450
[ "firebase-authentication", "riverpod", "flutter-state" ]
75,624,668
1
null
null
2
16
I made an application with Flutter. The application has webrtc and users can call each other. When someone get call we send call notification with custom sound. The problem is right here. In scenarios such as the call not starting or the person not seeing it, the sent call notification should be deleted from the device...
Flutter - How can i cancel FCM notification from ios device when app is closed?
CC BY-SA 4.0
null
2023-03-03T08:18:57.763
2023-03-03T08:18:57.763
null
null
14,768,296
[ "flutter", "push-notification", "firebase-cloud-messaging", "apple-push-notifications", "flutter-local-notification" ]
75,624,673
2
null
70,981,873
0
null
``` <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-artemis</artifactId> </dependency> ```
null
CC BY-SA 4.0
null
2023-03-03T08:19:36.433
2023-03-03T08:19:36.433
null
null
4,551,620
null
75,624,670
2
null
27,826,998
0
null
Encryption is the easy part, it can be done with any other API available to the web, like the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API). The issue is that there's locally. Alternatives include: - - [chrome.storage.session API](https://developer.mozilla.org/en-US/docs/Mozilla/Add...
null
CC BY-SA 4.0
null
2023-03-03T08:19:01.923
2023-03-03T08:19:01.923
null
null
288,906
null
75,624,672
1
null
null
0
11
I read gitlab document on rules([https://docs.gitlab.com/ee/ci/jobs/job_control.html](https://docs.gitlab.com/ee/ci/jobs/job_control.html)) but I'm not sure I understood properly. --- Goal - Run a function only when committed to a limited path. --- My first script didn't work, ``` test: stage: test script: ...
Tried to run a function only when source is committed to a limited path
CC BY-SA 4.0
null
2023-03-03T08:19:35.920
2023-03-03T09:59:00.817
2023-03-03T08:29:40.960
205,233
9,336,478
[ "gitlab-ci" ]
75,624,675
2
null
75,622,878
-2
null
If you just need to display html with xml (with tags), use this ``` <h1>Test html header</h1> <?php $string = " <root> <blub> <example_value>EXAMPLE</example_value> </blub> </root> "; echo '<pre>', htmlentities($string), '</pre>'; ?> ```
null
CC BY-SA 4.0
null
2023-03-03T08:19:53.357
2023-03-03T08:19:53.357
null
null
10,949,061
null
75,624,665
1
null
null
1
35
I have my search bar all setup using a javascript style database with around 200 pages to search but I want the javascript to return a name even if is spelt slightly wrong e.g the user types Cory haim they will get Corey haim also along with this I was wondering if you can open a search result in the current window ins...
search bar in javascript to search similar names even if spelt wrong
CC BY-SA 4.0
null
2023-03-03T08:18:34.197
2023-03-03T08:58:31.843
2023-03-03T08:18:58.537
21,031,041
21,031,041
[ "javascript", "search" ]
75,624,677
2
null
75,624,572
0
null
Your main mistake is to not recognize that you are creating a constructor. The `class test {...}` declares a class named `test`. That's probably a mistake. Dart style says to use capitalized names for classes, so it should be: ``` class Test { // ... } ``` You probably just wrote some name because a name was needed, ...
null
CC BY-SA 4.0
null
2023-03-03T08:19:59.637
2023-03-03T08:19:59.637
null
null
2,156,621
null
75,624,674
2
null
30,791,905
0
null
Python's scipy module has a czt function. You can simply use czt as fast dft in your case. However it is 1d only. To perform 2d dft, I had to implement my own method. It's basically dft along x, and y sequentially. Here is a runnable code sample. ``` import numpy as np import scipy import matplotlib.pyplot as plt def...
null
CC BY-SA 4.0
null
2023-03-03T08:19:48.420
2023-03-03T08:19:48.420
null
null
21,178,412
null
75,624,680
2
null
54,388,961
0
null
For laravel 10 you need to add these 2 lines inside resources/js/app.js ``` import feather from 'feather-icons'; feather.replace(); ``` After that just run ``` npm run build ```
null
CC BY-SA 4.0
null
2023-03-03T08:20:09.400
2023-03-03T08:20:09.400
null
null
21,324,524
null