text
string
meta
dict
Q: Swift MapKit Multiple Polylines with different colors I am trying to have different colors for each Polyline in MapKit in Swift. Here is a simplified example. func mapView(_ mapView: MKMapView, rendererFor overlay: MKOverlay) -> MKOverlayRenderer { if let overlay_ = overlay as? MKPolyline { let r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cannot borrow `*self` as mutable because it is also borrowed as immutable on returning an Option containing a reference to self Here, I have a struct Bar that has a reference to Foo in it. I recently got an error that matched this pattern and wanted to try and create a reproducible example. struct Bar<'a> { foo:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get jwt from google access_token? Using @react-oauth/google but I do not get how to get jwt from access token (name, email) of the user. Tried this: import { useGoogleLogin, GoogleOAuthProvider } from '@react-oauth/google' import axios from 'axios' import jwtDecode from 'jwt-decode' const handlerGoogleLo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show alternative text if Iframe can't load the resource at src in Angular I have a running Angular 12 application and I am implementing a behavior where I need to fetch the content from external site and display inside the modal popup. I am using <iframe src="url"> to fetch the content from separate applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Kerberos authentication. Keytab and ticket I've got several question about Kerberos, how it work. * *Does every service, for example Postgres, which uses Kerberos authentication, must have keytab, generated by KDC? Or maybe kerberos authentication on service can be without keytab file? *How does keytab determine,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to write several columns in one colum in R I have a data frame with roughly 6000 columns and 5500 rows. The first column of my data frame is a Date ("Timeframe"), the rest of the columns are log returns for different stocks. I know want to write all of the stock columns (their names are their respective RICs) in...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to deserialize GraphQL response for n no of edges and node in C# I am trying to deserialize the GraphQL query result which may contain n no of edges and nodes into a class name "Company" but I am getting an error saying: "Newtonsoft.Json.JsonSerializationException: 'Cannot deserialize the current JSON object (e....
{ "language": "en", "url": "https://stackoverflow.com/questions/75573223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: TypeError: undefined is not an object (evaluating 'navigationTheme.colors') I am trying to use react-native-paper api to implement theme change, when I add this lines of code: const { LightTheme, DarkTheme } = adaptNavigationTheme({ light: NavigationDefaultTheme, dark: NavigationDarkTheme, }); App crashe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add labels (count) to bar plot ggplot for large dataset in R So I have a barplot of cars and numbers tested and I'm trying to add the counts of each car on it's bar but the numbers are just clustered at the foot of the bar, below is my code cars %>% mutate(Brand = fct_reorder(Brand,Total-test,.fun = sum)) %>% gg...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: react-scripts hot reload not only src When i run "react-scripts start" and i modify the code in my "src" folder then i save (ctrl+s), the app is hot reloading with the message "compiling..." then "Compiled successfully!". But when i modify the code in my "api" folder, it doesn't work. I can't figure out how to conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access signals in submodules with multiple modules? I have the following Verilog file named main.v: module m1(input a, b, output wire c); assign c = a & b; endmodule module main(input x, y, output wire z); wire k; m1 m1_inst(.a(x), .b(y), .c(k)); assign z = x ^ k; endmodule After that, I have a test ben...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angular finalize doesn't work inside pipe with switchMap After getting confirmation from the user, I want the process to start and the modal to remain busy until the process is finished. Bu the code below doesn't work this way. Only if the request returns an http error from service then isModalBusy turns into false....
{ "language": "en", "url": "https://stackoverflow.com/questions/75573235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript function to switch the css classes not working as intended I have an HTML file which creates a 5*4 grid using td elements. Each td element has it's css class with bunch of properties. I'm trying to switch the css classes of my elements on a button click. Example, if i click 'up' button the css classes of...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'Function calls are not supported in decorators' | Angular library I am testing a 'ng-circle-progress' in my existing angular library where the NgCircleProgressModule has only .forRoot() method as initialization. But it throws error while creating a build using below cmd. ng build shared-lib --prod // Module.ts i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement the logic of closing "active/open" accordion in a React.js way? i have a FAQ page with categories and list items for each category. When the user clicks on a category name, a list of the category's FAQ items appears. When the user clicks on a FAQ item, the element gets the "active" class and opens. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Auto Scaling Test in ECS I did not auto scaling my container in ECS. It goes up to the lowest 1 and the highest 3 machines. I want to test the Auto Scaling process, but I did not know how to increase the cpu ratio. Is there an app that can increase the amount of CPU and let me see what's going on? Or how can I do th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sequence of destructors when using unique_ptr to base class I am experimenting with std::unique_ptr and class inheritance (i.e. polymorphism somehow). The code I am running is the following: #include<iostream> #include<memory> class polygon { public: int side; polygon(int i): side(i) {std::cout<<"polygo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to splice a tensor without knowing the dimensions? Say I had a tensor x of shape (21, 256, *), how could I get the equivalent of x[:, :48, ...] programmatically? A: Alternatively, you could do this in pure python since y = x[:, :48, ...] is equivalent to y = x[[slice(None), slice(None, 48), Ellipsis]] We can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaScript Fetch Fails in Tauri-built App I am building a small app using Tauri with HTML/JS/CSS. In the development, the app works exactly as I designed it. When I build the app, the app runs, but the buttons do not seem to work. In the HTML, I created a button with a unique ID. <button type="button" id="Song3@8@4"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: finding a given letter in an array or object I'm trying to solve an algo/data structure problem, here's the problem/question. Problem: given a string of letters find the longest contiguous substring in alphabetical order and return the max substring length. Question: how can I set this up so I find givenArray[curren...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Securing webhook URL in Office365 management API I am trying to subscribe to Sharepoint content type using Office365 management API. I have provided a webhook URL which will receive the notifications. But how do I verify that the notifications indeed came from microsoft ? Is there any security mechanism that I can u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular SSR (Universal) Website not working with keycloak-js adapter and keycloak-angular plugin I am strugling to translate my website to Angular SSR for better SEO ranking. I manage to handle window, document, localStorgae calls in website. But when I check whole site with Keycloak integration it fails due to wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Kruskal Wallis test - switching response and input variables I am trying to establish if there is an association between two variables. My Outcome Variable, sum_anx_7 , indicates the level of Anxiety. My Input variable is the number of traumas experience in childhood, ACE_FREQ_SUM_agg. summary(dt$sum_anx_7) Min....
{ "language": "en", "url": "https://stackoverflow.com/questions/75573257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make page scroll when cursor is not in focus I have a 3-column layout, in which the middle column is scrollable and I don't want other columns to be scrollable. Also the middle Column should be scrollable when cursor is outside the column on anywhere of page basically with the page scroll also but within the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is there any open source tool to test FIX protocol application? I am looking for an open source tool or paid tool which helps me testing end to end functional test ing of order management system. It shall support automation testing/ API testing. I am trying to search online but not finding a good tool which supports...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a risk here of code reordering and the lock failing? I have the following lock that I use to prevent multiple threads from accessing the same code: struct SimpleAtomicThreadLock { constexpr SimpleAtomicThreadLock() : bIsLocked(false) {} std::atomic<bool> bIsLocked; void lock() { while (bIsLocked.exchan...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to post data depending on selected filters on suitelet? I have created filter fields on suitelet. In filters I select options and then redirect to second suitelet. Filter fields are, subsidiary, location, year and employee designation is 'developer. Now I want to post data depending on option selected in filter ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Github action doesn't work with GCP. 403: Permission 'iam.serviceAccounts.getAccessToken' denied I am trying to create a GithubAction job, which should authenticate in GCP via Identity federation and upload some files to a bucket. Here is the full source code of GitHub action. In this job I have such a step which do...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Confirmation alert after sending mail php form <?php //PHPMailer first part of the code try { //PHPMailer second part of the code $mail->send(); header('Location: contacto.php'); $message = "Mail sent"; echo "<script type='text/javascript'>alert('$message');</script>"; } catch (Excepti...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert date to UTC and local timezone when sending it with axios I'm currently struggling to convert a date to utc and then once i get it from the server to local time. I've a date picker, where i can obviously choose date, as seen here: I'm using axios to send my formdata, this is the statement for it: const resp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Incorrect application version found on all instances. Expected version "Sample Application" - Issue of AWS Deployment I am trying to deploy a Flask which is Web Scrapping, here is my github repo: https://github.com/chimlun0910/Course-Reviews-Project. I used to Elastic BeanStalk for deploying and scaling web applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Using const char* instead of const string I was going through llvm source code and found the following function declaration. int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path){...} (at https://github.com/llvm/llvm-project/blob/main/llvm/lib/Bitcode/Writer/BitWriter.cpp) Is there a reason to use const cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to force k8s to reload image when changing ConfigMap I have the following yaml, that I would like to reload the image, when ever I change the configMap and apply. Do you know how to reload the image when kubectl apply -f : cat <<EOF | kubectl apply -f - apiVersion: v1 kind: ConfigMap metadata: name: my-configm...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django handler404 not called on raise Http404 I've setup a custom 404 handler in my Django views @api_view(["GET"]) def handler_404(request: HttpRequest, exception: Exception = None): return Response({"status": 404, "error": "Not Found"}, status=404) It works perfectly if I visit an invalid path; however it is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Protobuf error while importing Tensorflow_hub in VsCode ... If you cannot immediately regenerate your protos, some other possible workarounds are: * *Downgrade the protobuf package to 3.20.x or lower. *Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Delete specific item from array from the the local storage I am doing a todolist that have local storage. I add the item to the array and then add the array to localstorage how can I delete the item from local storage?
{ "language": "en", "url": "https://stackoverflow.com/questions/75573283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to load data from api call in card with react native? I have a react native app and I try to navigate to a card component where the data from a backend call has to be loaded. But untill now the data call has not been triggered from the backend. So I have a service: export const fetchSubCategoryData = async () =...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to auto generate header for next div I have this code * *when the tables reached the max hight of the parent DIV it automatically move to next auto generated parent div and so on.. *Now is there a way to auto generate the HEADER in next parent divs? My code is https://jsfiddle.net/erwinagpasa/yn763h89/17/ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how can a function return an lvalue in c? i read in The Linux Programming Interface 29-2 Threads and errno the next : On Linux, a thread-specific errno is achieved in a similar manner to most other UNIX implementations: errno is defined as a macro that expands into a function call returning a modifiable lvalue that...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: why the flowing code dont detect barcode on firefox on android device Why the following code works well in Chrome browser of Android phone, but Quagga.onProcessed function and Quagga.onDetected function does not work in Firefox browser of Android phone. this is very important fore me please help me to find out probl...
{ "language": "fa", "url": "https://stackoverflow.com/questions/75573292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to fix 'transaction underpriced' in the java code? Java Code: String pk = "mywallet"; Credentials credentials = Credentials.create(pk); long chainId = 137; TransactionManager txManager = new RawTransactionManager(web3, credentials, chainId); ERC20 javaToken = ERC20.load("contract adress", web3, txManager, new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Restoring images which has gone under linear matrix transformation I have a dataset of images in npy format. The images resolution are of 32x32 which ash gone under linear matrix transformation. The transformation key K is an invertible matrix of size [3k^2,3k^2] as they are in RGB. Now for K=4 which is a key of inv...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to extract text from a tag containing pseudo-element I'm trying to scrape a website, I want to extract only the location (text) from a span tag containing a pseudo-element (::after) within other parent div tags thus: import requests from bs4 import BeautifulSoup import re url = 'https://some website' page =...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a POST request by passing values to the request body? I want to pass a list of IDs to a POST request. def exportByIds = Action.async(parse.tolerantText) { req => ids = req.body.split(',') download(ids) } In the routes file it looks like this. POST /games/export/_ids controllers...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: msgpack vector of struct pack / unpack I have below struct and want to pack , unpack in c++11 but has error: I using the zeromq for messaging and packing with msgpack. It will be faster and smaller than the json serialization I assume. struct AlpBox { int p1 ,p2 ,p3 ,p4 ; float confidence; int class_id; M...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: MacOS unified log with oslog crate I'd like to write to Apple's unified log on macOS from Rust. I found the oslog crate which seems promising and I have the following code so far: #[macro_use] extern crate log; use oslog::OsLogger; fn main() { //env_logger::init(); OsLogger::new("com.rust") //.leve...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How many keys must a B-Tree Node have? I am trying to implement a B-tree and I've read this article: https://www.geeksforgeeks.org/introduction-of-b-tree-2/ These are two points that they wrote: * *Every node except the root must contain at least t-1 keys. The root may contain a minimum of 1 key. *All nodes (incl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Type 'HTMLCollection | undefined' must have a '[Symbol.iterator]()' method that returns an iterator I don't know what I am missing out here. I am following a tutorial in building a custom date-picker using a web component here https://www.youtube.com/watch?v=g1Zd0Y7OJuI&t=723s and am translating the JavaScript logic...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: CORS error in express and failed to load response data When I'm trying to register user or login user it shows cors error I'm trying to resolve this for more than a day but I'can't. what I need to change /add/remove to resolve this error. I have tried addding credentials ,cors --save but nothing works index.js const...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: i keep getting the same error when using a loop I'm making a Discord music bot in Python 3.9.13. No matter what I do, I always get this error. I only use asyncio in one part of the code. I tried all of the solutions I could find, but none of them helped. I also added this policy fix. I read something about a bad ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: if non terminal is present only at the right hand side of the production then should i take it Terminal or non terminal S -> CC C -> cC |D what will be the first of the question Unable to figured it out that what to do with D , should i take that a terminal or non terminal
{ "language": "en", "url": "https://stackoverflow.com/questions/75573315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make a computer boot from a batch file? I want to experiment with creating a custom operating system, but I the only text-based progammming language I know extensively is batch. I had the idea to use Task Scheduler, but then I realised that this would not work without Windows having booted already. Any idea...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: C# AES cutting the message in 5 characters I'm trying to encrypt the string, but it seems to be giving an error in the json, because it's cutting 5 characters from the string. using System; using System.IO; using System.Security.Cryptography; using System.Text; using Newtonsoft.Json; namespace Test { public cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I wanted to Load interstitial ad on exit pop up when user pressed yes button. But as soon as ad loaded it closes the application it an exit pop up confirnmation I wanted to Load interstitial ad on exit pop up when user pressed yes button. But as soon as ad loaded it closes the application (I wanted to Load interstit...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to validate matching entries in Javascript? How to validate matching entries in Javascript? E.g. a fictional place and a real place could not be the same place. Thanks! I have tried so many things. I really need to find a function that I could use.
{ "language": "en", "url": "https://stackoverflow.com/questions/75573324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Cannot use Numpy module in Sublime Text because it's using the wrong python version Numpy is installed on my computer and I can import it when using the command line but does not work when using Sublime Text. The error I get is ModuleNotFoundError: No module named 'numpy'. I realize this is because the command line ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Union multiple BigTables and query them We have a product where the data of our customers saved in GCP BigTable instance. Each customer has it's own table for it's own data, but all the tables located in the same instance of BigTable. Now our new requirement, is to have a Superuser that able to see the data from all...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VSCode C# context menu not displaying the normal options What shows up in the context menu When I right-click in Visual Studio Code only a few options appear in the context menu, I've seen others online with several other commands listed in their context menu. What might've gone wrong and how do I fix it? I tried t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Heroku CLI update available... or not? A bit weird... Any thoughts? % heroku -v › Warning: heroku update available from 7.68.2 to 8.0.1. heroku/7.68.2 darwin-x64 node-v14.19.0 % brew upgrade heroku Warning: heroku/brew/heroku 7.68.2 already installed
{ "language": "en", "url": "https://stackoverflow.com/questions/75573331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make 2 for loops fast? I am working on an algorithm. Here's what I want to do: I want to navigate every pixel on the image and make changes. There is a method for this, but it is very slow: width = 1280 height = 720 for i in width: for k in height: print(i, k) Output: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Github Action Docker Build and Push not working I am trying to build a simple Dockerfile using build and push but no matter what I do it gives me permission errors. Here is the Github Action Yaml (we are running on a large runner since it is a large image): name: Build Image and Push to ACR on: pull_request: wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to copy a linked list into another in a method python I'm new to learning linked list and one thing that I'm trying is to copy nodes of one linked list into another. I understand how to iterate through the linked list, but I don't understand why its only coping one of the nodes into the new linked list and remov...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Woocommerce analytics not showing sales after upgrade Yesterday I upgraded WooCommerce from 4+ to the latest version. Apparently all was working well but one thing I noticed is that the “net sales this month” area in the WooCommerce Status dashboard panel shows $0.00. I know for a fact that we’ve had sales yesterday...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Fontawsome Pro icons in mkdocs material I have purchased a License for the Fontawesome Pro Icons package and was wondering how I can use the pro library kit in mkdocs material? I currently use the free fonts like this, for example: :fontawesome-solid-user-secret: But I would like to use the "thin" versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting NameError: name 'GL_POINT_SMOOTH' is not defined error while creating plot using Geoplotlib I am trying to create a Dot Map using geoplotlib and getting the following error: Traceback (most recent call last): File "/Users/abc/opt/anaconda3/lib/python3.9/site-packages/geoplotlib/__init__.py", line 32, in _r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java command line application freezes after some time on Windows I have created a small command line tool that validates whether two file trees are identical in content, and if not, it copies over files from the "source" file tree to the "target" file tree. Because I'm running this job against two rather large file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a method in PHP to run a script one time after starting the server? I had started building a Simple Framework in PHP. The framework provide Router and few utilities that facilitate working on small projects. The Router class has a static associative array that holds routes, and static methods that build tho...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: serialInst.port = is not defined serialInst.port = portVar ^^^^^^^ NameError: name 'portVar' is not defined import serial.tools.list_ports from tkinter import * root = Tk() root.config(bg="grey", pady=50, padx=50) ports = serial.tools.list_ports.comports() serialInst = serial.Serial() portsLi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Retrieve Service principal and Client Secret during creation using powershell I'm creating new secret in Azure (app registry) and have a problem to store new secret vault. Th code looks like below: $Pass = New-Guid | ConvertTo-SecureString -AsPlainText -Force $Credential = New-Object Microsoft.Azure.Powe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: failed to hear audio on jupyter with librosa but can with scipy - sampling rate issues? I can hear audio in jupyter if loaded with scipy. However, I can hear untill 192000 sampling rate. If I set to 192001 or above, I cannot hear anything. from IPython.display import Audio from scipy.io.wavfile import read wave_fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with cin.getline() inside of a loop The loop works well as long as it enters less than 10 characters as an option, but if I enter more simply ignore the cin.getline. #include <iostream> using namespace std; main() { char name[3][11]; for(int i=0;i<3;i++) { cin.getline(name[i],10,'\n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: glfwwindow returns NULL pointer I recently started using OpenGL, The following is my Code # include<GLFW/glfw3.h> # include<iostream> void framebuffer_size_callback(GLFWwindow* window, int width, int height); int main() { // glfwInit(); if (!glfwInit()) { std::cerr << "Failed to Create GLFW In...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to highlight username in html table with JavaScript(almost there) I am using the following JavaScript code to highlight one name in a html table. Using the mark tag with a background colour to highlight the name. It works to highlight the name but breaks the format of the table and just displays a long list of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generic command-line argument parser with template, need implementation suggestion I want to implement a C++ command line generic argument parser (also for fun). Existing popular argument parsers lack some functionalities. * *gflags: Does not support vector very well. *getopt: C based, this is for without type. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: QT change of coordinates for QGraphicsItem I want to plot my custom object on a QChart or QChartView object (I don't really know which one is right), but when I create my object it is defined in the chart's coordinates, not in the scene coordinates (I would like to keep it that way if possible). This is the code I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to start/stop my launch agent in all logged in sessions from a root user process? I'm writing an installer for my launch daemon, and for a launch agent, that will run in every logged in user session on macOS. The installer will be running as an admin, and thus I can install and start my launch daemon as such: la...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: undefined reference using c++ from hpp file for rcpp #ifndef GAUSSIAN_HPP #define GAUSSIAN_HPP #ifndef M_PI #define M_PI 3.14159265358979323846 #endif #include "Distribution.hpp" class Gaussian : public Distribution{ static constexpr double denom_const = sqrt(2 * M_PI); public: Gaussian (int id, int n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Compare time to milliseconds with date command I want to use firefox when a certain time comes. Then came all the processes related to firefox. Time does not compare. #!/bin/bash #Set time. realTime=$(date +"%T.%6N") firstNormalActivityTime=$(date -d 19:06:00.000000 +%s) secondNormalActivityTime=13:18:00.000000 thir...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: App uses two modules, each one has different library version I have an android app that uses modules, let's suppose we have the app and module 'A' I updated a module called 'Core', and I updated the version of 'Core' in the app without updating it in the module 'A', but this caused a conflict and the module built on...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Convert web_sys::PostData to reqwest::multipart::Form I have a form with a file input (filename): use yew::prelude::*; html! { <form enctype={ "multipart/form-data" } onsubmit={ form_onsubmit }> <input type="file" name="filename"> <button type="submit">Submit</button> </form> } I am able to get t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Type 'AxiosResponse' is not an array type I have a some small problem with typing axios response. I have method that return user profile from API: static async getProfileById(id: string | undefined){ const jwt = localStorage.getItem("jwt"); const response = await axios.get<IUser>(`http://localhost:4000/api...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parent/Child category MySQL table and output to HTML unordered list in PHP I have been struggling with this for several days and not really getting anywhere, so looking for some help/guidance. There are lots of different ways to achieve something similar here on Stack but none that I can either make work the way I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Find number of pairs in an array whose sum is divisible by k I was doing a CodeSignal practice, and I had the following question: You are given an array of integers a and an integer k. Your task is to calculate the number of ways to pick two different indices i < j, such that a[i] + a[j] is divisible by k. The cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Kotlin Compose glance App widget LazyColumn I'm creating app widget and I want to achieve that only part of the widget is scrollable. When I created Box( modifier = GlanceModifier .fillMaxSize() .background(ImageProvider(R.drawable.bg_widget)) .padd...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I have a widget that takes a long time to build and can't figure out how to show a loading spinner while it loads Update 3: ok finally figured out that even if I get everything to build into a list of widgets async, when I go to display the widgets it hangs up. You’d think that listview would work since it should on...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove special character from a file without any extension in order to make it a dataframe I have a file without any extension. I want to convert it to a dataframe in python but it doesn't let me because it says it has too many columns than expected because | is the delimiter and I also have it inside two ". It is p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google get city, state, country for a place I have downloaded some of my data in Google Takeout (Google Maps Favorites). From this, I have Title (name of the business) and URL. With this information, is there a way to return the city, state (or equivalent), and country? The URL does not have the longitude and latitu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to not minify js file in build in gulp? I want to NOT minify the main js file ( app.js ) in production mode ( npm run build ). I use webpack-stream to compress and import various files/libraries into one single app.js file. But, for some reason, I need a regular readable js file as in development, with files imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Render Problems with TabLayout and ViewHolder I am currently unable to render am activity with just a TabLayout and ViewPager. I am getting this error: Style ResourceReference{namespace=apk/res-auto, type=attr, name=textAppearanceButton} is not of type STYLE (instead attr) From the following code: <?xml version="1.0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: P5 catch shader compilation errors I am making a shader editor in the web. Users can create their own shaders in a textarea and it will be applied to a webcam. The problem is that I have no watch to catch shader compilation errors and display them to the user. They just raise an error in developer console. My code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Firebase Storage upload/download script not working in unity I'm trying to create a download and upload function for a game in unity with firebase integration using System.Collections; using System.Collections.Generic; using UnityEngine; using Firebase.Storage; using System.IO; public class FirestoreLoader : MonoBe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error "Failed to load resource" when creating first mySQL, javascript, node project I'm trying to create a simple contact manager project using html, javascript, node and MYSQL. My database is created in MYSQL and I have a server.js node file which is up and running (when I run it with node it is running the app.lis...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GStreamer Python: gi.repository.GLib.GError: gst_parse_error: no element "appsrc" on OSX I'm trying to setup a RTSP stream in Python with OpenCV. I found this repository which I started from as an example. I'm pretty sure the code in there is not entirely written by that person, because I found some older sources wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I have 'functionBody' for a c++ function inside 'cv.SplitReg' function(SplitReg package)? I am interested in SplitReg package and I would like to know how the author developed his method inside the function 'cv.SplitReg', more precisely the function I want is 'Main_Ensemble_EN' and 'construct.cv.SplitReg'. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to keep state of the App when refreshing the page? I create a react app and i'm using redux. Login and logout work properly but if i'm logged in and i refresh the page the logged status is lost. How can i keep the logged in status after refresh? i'm a student so i'm an expert in coding, in our learning platform ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extension for Chrome/Opera GX - Getting url of downloaded file I wanted to rename a file so it will use host as a name. But it doesn't work. chrome.downloads.onDeterminingFilename.addListener(function(item, suggest) { let host = new URL(item.url).hostname.replace(/^www\./, ''); suggest({filename: host}); });...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tooltip is not working properly when span is added I am using a tooltip which gets displayed on hover when the button is disabled. Since the css of the button was getting distorted I used span to remove distortion. After adding span, the tooltip is not working properly. When I hover over the button, at times it does...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Customised Index individual stock performance Tickerid= NSE:UPL+NSE:PIIND+NSE:BAYERCROP+NSE:SHARDACROP+NSE:BHARATRAS+NSE:RALLIS+NSE:ASTEC+NSE:DHANUKA+BSE:PAUSHAKLTD+NSE:BESTAGRO I want to display performance of each stock in the customsed index. Following script displays custom index and NIFTY only //@version=5 ind...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I am unable to read my values ​in firebase's datarealtime After several tries I am unable to retrieve the content value in my formcontrol input fields on my firebase datarealtime. There is indeed the creation of a new formgroup field with my formcontrol subforms which are displayed in datarealtime but next to the va...
{ "language": "en", "url": "https://stackoverflow.com/questions/75573400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I want to do instagram auto mail collection How can I collect the emails of the highlights of the account after entering the instagram account, but it will filter the mails, for example, gmail, yahoo, etc.
{ "language": "en", "url": "https://stackoverflow.com/questions/75573401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }