text
string
meta
dict
Q: return an enum type from a fucntion in javascript Is it possible to return an enum type from a function in typescript javascript. Example: enum Fruit{ APPLES, ORANGES, } const findFruit= (arr: string[]) => { return arr.reduce((acc, cur) => { const result = Object.keys(Fruit).find((item) => cur.inclu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to increase ALB metric retention time for AWS cloudwatch? After combing through the docs and looking for other sources, I was only able to find documentation on logging and log retention. Is there any way to increase the retention time for ec2/ALB metrics such as response time, unique connections, etc, or is met...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Appending multiple lines to CSV with for loop in python I have written code to create a multiple line CSV file. For this purpose one column will write default values and the other columns will have blank values to be edited later. What results from the code is the headers being created correctly, but all list values...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why are Cookies not being set in request headers? I am updating the authorization process on an old Symfony REST API / AngularJS App combo. On authentication, the server provides cookies, containing a couple of token to be stored on the browser so that they are added as headers in subsequent requests - pretty standa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Android Studio not adding Imports, cannot find Import for File class I am trying to add a line of code to get the path to external storage directory File extStore = Environment.getExternalStorageDirectory(); However, I cannot figure out what I need to Import to get the File and Environment objects Android studio is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unsupervised, realtime outlier image detection which updates over time I am trying to detect outlier images and need some guidance. Imagine I have a camera in the sea. The camera is recording 24/7. Only a single fish is ever visible in the frame at a time. Now imagine I just turned the camera on. At first, the image...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Razor pages model validation if either textboxes is required Let's say I have 2 textboxes in a user registration form * *Email *Username User is required to fill up 1 of them but not both. How can this be done using ASP.NET Core model validation? Adding [Required] attribute on both Email and Username properties ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gifting teenagers access to "the real deal" in technology competitions I run a CTF for teenagers as part of a local LAN party. Our goal is to "nerdsnipe" teenagers in our local area into developing their technical skills, as well as expose the interest to more kids. As a part of this, I want to give them something T...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: A complete log of this run can be found in: /home/faiz/.npm/_logs/2023-03-04T02_57_43_664Z-debug-0.log when i run "npm install" it has below error. (venv) faiz@faiz-Latitude-E7270:~/Documents/ploranzai/frontend$ npm install --force npm WARN using --force Recommended protections disabled. npm ERR! code ENOTEMPTY npm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm so tired I swear I can't find the issue. It seems that whenever I run the code, it prints 5426 93 17 77 31 None class Node: def __init__(self, node_data): self._data = node_data self._next = None def get_data(self): return self._data def set_data(self, node_data): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: in kotlin do I have to set my class's nullable member variables to null after it goes out of scope? do I have to create a destructor if I have a nullable type as member variable of a class in Kotlin? class Mesh{ var tris:ArrayList<Int>?=null init{ tris=arrayListOf<Int>() } fun init...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compiler flagging error for using array size variable This simple piece of code for some reason is causing the compiler to show an error: #include <iostream> using namespace std; int main() { size_t c_string_length{15}; auto* selection{new char[c_string_length]{"Biggie Smalls"}}; for(size_t i{};i<c_string_length;i+...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java/IntelliJ/maven: so I made a change in a package and my other package can't see the updates? might be best explain with an example: * *I have 2 maven projects (projectA and projectB) *In projectB classes, I can use any of projectA public functions/features. *I created a new function (let's call it functionX)...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: google/cloud-storage with Firebase Storage I am using google/cloud-storage (composer package) with Firebase Storage (instead of Google Cloud Buckets). The service_account json file (credentials) was generated through Firebase console. The authentication seems to work: $this->handler = new StorageClient(['keyFile' =>...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sveltekit inconsistent invalidate method On my application, I have a page that loads data from the backend. If no data is present, a form shows up. Whenever the form is submitted, I should refetch data and present what the user have just filled. This happens in a couple pages. In one of them, i've used depends on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'utf-8' codec can't decode byte 0xd9 in position 0 I have a python script on a Raspberry Pi (server) that makes a connection to another python script running on a Windows 10 machine (client). I keep getting the 'utf-8' codec can't decode byte 0xd9 and not sure how to solve it. This is how the connection between serv...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My php script code keeps on serving an error 500 message My php script code keeps on serving an error 500 message when a user tries to log into theirdashboard. It was working fine then all of a sudden, it started serving the error. Below are screenshots of the code and the page that shows the error. I added a few li...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: how to sort in JAVA? Class Staff is an abstract class with a display() method. The ICalculator interface has a calSalary() method. Emoployee class and Manage class extends Staff and implements ICalculator. The Staff class cannot implement ICalculator. How to sort List by salary Staff that does not implement ICalcula...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Why does Object.hasOwn() seem not to work with function_name.caller.arguments in Safari? I have a function (named log_function) which I use to log other functions being called, both to the console and to a string var which I periodically send to the server using a beacon. I simply call it near the start of function...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Submit Form GET request w/ Query Parameters but exclude submit while submitting form So I am using HTML and PHP to build out a form that will take in two parameters and then call an API and build out a form. So here is the HTML: <div class="login-page"> <div class="form"> <span>Enter the Customer Load Number a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to give a dirt block aa block entity identity in Minecraft? I want to prevent "pie-ray" in Minecraft where players can find other players bases based on block entities showing up on a pie graph. I was thinking that I can circumvent this by giving dirt blocks the same block entity identity as like let'...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to make this logo image sit in the center of the header with the same horizontal alignment? I'm trying to align this logo in the center of the page, between the two sections of links in the header. I have the image in a separate div, and a unordered list on either side, with float left and float right. Not sure ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to convert a image url string from firebase storage to firestore How do I convert the image url string to firestore? I am trying to add my image url from firebase storage to firestore but I only receive the image name ("UserPic") but I need the image url string and not the name The imageName is a string so im no...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Intersection between a known object and an index signature Is it possible to create a type that's an intersection of both a known object and an index signature? In the code below the type should be something like: { a: string, [prop: string]: number }, such that a must always be a string, but any other properties mu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I'm passing my model but still get an error System.Web.Mvc.WebViewPage.Model.get returned null I have been stuck in this error for days and I can't understand why, I'm pretty sure I'm passing my model correctly. Here is my code: Controller method: public ActionResult EditaUsuario(int id) { List<usuario> user = n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does {0..0} mean in bash script? I'm trying to get the code running on my Ubuntu from this github repo. I couldn't run or understand the bash script in that repo. For example, this is from prepare_mnist_rot_scale.sh. #!/bin/bash # MIT License. Copyright (c) 2020 Ivan Sosnovik, Michał Szmaja MNIST_DIR="${MNIST_...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: trying to get date from a customer date picker in pything and tkinter I want to minimize the number of clicks and typing a user has to go through to select a date. This code pops up a date picker with the option of either clicking on a date or the cancel button, or hitting the ESC key. My problem is that when I cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Clear MUI Select value after submitting form I'm trying to clear my Select values from MUI after I submit a form, but the values aren't being cleared. <form action = {(event) => calculateCaloricIntake(event)}> <FormControl> <InputLabel>Height in Inches</InputLabel> <Select required on...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DROP INDEX daih_students.index_dh_sno; DROP INDEX daih_courses.index_dh_sno; enter image description here when I want to drop these two indexs,it occurred that schema "daih_students" does not exist. The daih_students is a table,but why the error tips that a schema.How can I solve this problem. I've tried another wri...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React-Native Android crash on install - NullPointer on zoom video-sdk initialize On some devices, we get a NullPointer exception when loading the app from install. The workaround is for the user to clear the app cache to make the app work. However, this is not possible for end-users. Errors java.lang.NullPointerExce...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pygame.image.load(os.path.join) not working Can anyone tell me why this won't work(it works on my other computer). BLUE_BULLETS = pygame.image.load(os.path.join("c:\\pixel_laser_blue")) location I don't think I messed up the location, did I? Thanks in advance! Help me with python pygame. A: The problem is the file...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does a user-defined drop for a struct also drop its fields implicitly in Rust? Let's say I have a struct struct Foo { a: Box<usize>, b: Box<usize>, } And I'd like to do something with a and b when dropping a Foo instance like this impl Drop for Foo { fn drop(&mut self) { println!("{}", self.a + ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Avoiding "use of internal package" when running individual tests I wanted to hack on golang std lib, so I checked out the project in IntelliJ with Go plugin (should be same as Goland) then right-clicked on src/text/template/exec_test.go and tried running it, but it fails due to: GOROOT=C:\Users\mwisn\sdk\go1.19.6 #g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: On Back Pressed Finish the Activity in JetPack Compose I have Two Two Activities Login And Main In Main I have 6 to 7 Compose Screens in them DashBoard in the one of the screen in Main Activity I want to finish my Activity when I click onBack on from only DashBoard Screen not from remaining screens .I used Some meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to append user inputs to a list? If I ask for a user input and want to append it to a list, why does it replace the list every time with just the single input? test_list = [] test = int(input("Test enter a number: ")) test_list.append(test) If the input is 1 the first time I run the code, it appends 1. If I run...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-8" }
Q: How do I add custom domains that are required to implement email link authentication in Firebase? I want to add a custom domain that is required to modify the email template of firebase authentication. However, if I want to verify the domain from Firebase with the domain address I purchased, I should add the followi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to retrieve MAC address on Android 11 and above using getHardwareAddress() I have been using the following code snippet to retrieve the MAC address on Android devices running 9 and 10 successfully: But this function is not working on android 11 and above public String getMacAddressAndroid6Plus() { try { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The function imagealphablending() does NOT make any difference in creating a PNG image, why? I am creating a PNG image on the browser using PHP GD library. Current PHP version: 5.6.40 GD library version: 2.1.0 OK, so the code to create a PNG image is given by: <?php $width = 500; $height = 300; $ih = imagecreatetr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to resolve Import failed: Circular dependency i got stuck in this error Import failed: Circular dependency: Magento\Logging\Model\Handler\Controllers depends on Magento\Framework\View\Element\UiComponentFactory and vice versa. help me i am stuck from 2 days
{ "language": "en", "url": "https://stackoverflow.com/questions/75633501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MassTransit Transactional Outbox CleanUpInboxState faulted I've been trying to use the MassTransit Transactional Outbox in the last months. One problem that I'm having is that I keep getting this error that the CleanUpInboxState faulted: fail: MassTransit.EntityFrameworkCoreIntegration.BusOutboxDeliveryService[0] C...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display an unknown number of dialogs in a row in Flutter? What I am trying to do is showing a Dialog that consists of a Form within it to the user, then user fills out the 2 TextFormFields and clicks on the Next ElevatedButton. Then another similar Dialog/form will be appear and user can do the same thing unt...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: static generation in the latest version of Next JS is not working enter image description here enter image description here I just wanted to test routing but couldn't. I used a new folder in components/about and when I search with http://localhost:3000/components/about failed teru Likewise, I created it in the pa fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use the right conditional operator for enums I have an enum declared as follows - public enum Status { REQ ("URL1"), NOT ("URL2"), GET ("URL3"); String getURL; Status(String getURL) { this.getURL = getURL; } } private Status status; I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Google Drive (Web interface) to Windows File Explorer Is there any tool that allows you to jump from a Google file (online) link to the local file in Windows File Explorer? This is assuming that Google File Stream is installed locally and the "mirror" of the Google Drive exists on the local hard drive. Basically, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Text-Align Center not centering text Im building a website and trying to do my best for responsive work with tablets/mobile devices. Working on the navbar it seems I cannot center the text with the text-align in CSS. What im doing ive seen similarly done, I just cannot find any contradictions. Here is the code: HTML...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Pysftp appends dot to files uploaded using put_d I'm using pysftp to upload and download directories. When using put_d, an extra dot is append to the start of the file. I google it, but i can't find how to resolve it. Example: tesfile.txt -> .tesfile.txt tesfile2.txt -> .tesfile2.txt python: 3.10.09 pysftp : 0....
{ "language": "en", "url": "https://stackoverflow.com/questions/75633515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What should I use on my Flutter Widget: `ValueKey` or `Key` I came across this scenario this week again. I've been using key: ValueKey(*aValue*) but for no special reason, taking into consideration that probably using key: Key(*aValue*) could work similarly. Any top reason or something for a deep understanding of us...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass data-v- to a child node of the component in Vue 3? When using <style scoped>, vue will automatically pass a data-v-<hash> attr to the root node of the component. For example: (Suppose the hash of the parent component is data-v-111111 and the hash of the child component is data-v-222222.) Parent <templa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to detect the right most sloped horizontal line and left most sloped horizontal line from an image? Extracted horizontal lines with slope I have filtered the lines using Hough Transform and extended them. As shown in the image I need to detect the first and last line which is going from bottom right to top left....
{ "language": "en", "url": "https://stackoverflow.com/questions/75633519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to create class in laravel I want to create repository folder that contain all reusable code other component can use. I declare it like this: And then I use it like this: But I got this error: How should I really declare class in laravel? I've search but can't find any answer. this is source code for FetchAPI...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why won't justify-content:space-between; work? The items just stay to the left instead of spreading out. Also, I'm using Google Icons, and the icons won't show up unless I'm using the base tag in the head section (the domain name isn't registered); is this normal? My browser is Microsoft Edge. header { display: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iText7: How to set creation date of PDF I can get the creation date of a PDF using iText7 (see below), but I don't know how to set it. iText5 used to have a PdfStamper that was replaced by PDFWriter. But I don't see any methods that allow me to update the document info. var documentinfo = PDFDocument.GetDocumentInfo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ServerVersion threw an exception of type System.InvalidOperationException (vb.net) Using a new machine I setup my environment and code that used to work no longer seems to work. I can't seem to open() a connection to my database. Public Shared Function GetDataSet(ByVal CmndText As String, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add a new element to a sequence with a EOL comment I have a YAML file as # This is the group manages the permissions group: - state: present group: name: "Developers" description: "The development team" userNames: - userl1 # <user1Name> - <User1email> - userd2 # <user2Name> - <...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any way to not push React Component into the stack when using Stack Navigator? Situation: I am trying to reload to the same screen screen with some selected values that I have selected first time and the second time some values would be fetched from database using previously selected values. I am using Stac...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Chess bot is sacrificing queen to put king in check I wrote a python script using multiprocessing (for speed). The pieces all have individual values that are predetermined in VALUES. NOTE: change #demo() to demo() to make the program interactive and more controllable. Here is the code: import multiprocessing ''' N...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Video Converted with ffmpeg is blank in a browser but fine when played on my desktop I am using ffmpeg to downsize videos on a website but after downsizing the videos have sound but no video. If I download them to my desktop and play them in VLC Media Player they are fine and have both sound and video. The command I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what's the meaning of "std::function{}" I'm a new hand of C++. When I read source code of node.js, I saw these code: struct StartExecutionCallbackInfo { v8::Local<v8::Object> process_object; v8::Local<v8::Function> native_require; }; using StartExecutionCallback = std::function<v8::MaybeLocal<v8::Value>(con...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get the full file path up to a specific directory in the path? I have a path, such as D:\repos\my-repo\some\script\path.ps1, and I want to get the path just up to the repo name: D:\repos\my-repo. What's the best way to accomplish this? Here's what I've got right now: $fullPath = $MyInvocation.MyCommand.Path #...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drools how to update object while avoiding infinite loop Here is my logic: Given a project and a list of recommendations. Rule1: For each recommendation, if it will incur any cost, add the recommendation into the project costList. Rule2: If the project costList is not empty, do X rule "Rule 1" salience -1 when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to restricted component based on user roles? Angular When user Login it will check the user roles. User has assigned specific role for each dashboard. if he assigned the roles only then he can access otherwise he can't. Help me to find the solutions. Thanks Example: he can redirect on Admin Dashboard or User Das...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RuntimeError: Either 'SQLALCHEMY_DATABASE_URI' or 'SQLALCHEMY_BINDS' must be set I am constantly getting a runtime error when trying to bind this database to my app. I have tried different ways to solve this error but I am constantly getting the same runtime error. from datetime import date from flask import Flask, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mongodb error: i am fetchting data from find method: i got data but also my nodemon crashes with eroor [9:10 am, 04/03/2023] Shajid: i am facing an issue related to mongodb please can you help me [9:11 am, 04/03/2023] Shajid: i am fetchting data from find method [9:12 am, 04/03/2023] Shajid: i got data but also my n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How to transform results (rows to columns) in KQL I have data in the format below. let T = datatable(OperationName:string, Result:string) [ "Method1" , "success", "Method1" , "failure", "Method1" , "success", "Method1" , "success", "Method1" , "success", "Method1" , "failure", "Method2" , "succe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unable to uninstall ghost program via wmi on powershell or cmd we have a ghost program Dell Command Update that is not uninstalling properly with WMI it keeps returning the result code of --> 1603 I try to run PowerShell and cmd as admin by right-clicking the program and entering my admin credentials. the program do...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .Net 6 docker build fails with "error NU1301: Unable to load the service index for source" when trying to access azure artifacts Note that I am trying to build this locally with docker desktop and not in Azure CI/CD pipeline. I have started this process using https://github.com/microsoft/artifacts-credprovider which...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to solve circular dependencies in a routing scenario? Here's a route configuration file route.gen.tsx: import app from "./pages/_app"; export const routes = [ { element: <App />, children: [...config, { path: "*", element: <NoMatch /> }], }, ]; export const { Link, Navigate } = components<Path, Params>(); expor...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to compress existing h5py file efficiently using multiprocessing I have a program that streams large amounts of data I need to save for later processing. This program is highly time sensitive, and as such I need to save the data as quickly as possible. To handle large volumes of data, I use h5py and do not use c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Google sheets dynamically build an array from another Say I have: But on a separate worksheet I would like to generate a new table of the following data of totals: I am stumped as to how to have this using as few formulas as possible - I don't want to copy paste the same formula among the rows, because my data cou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: duckduckgo on android didn't remember visited urls I have installed latest version of duckduckgo on my samsung s20 device. Almost things work fine. But it did not remember my visited sites. For example I open a tab then go to abcxyz.com, then I open another tab and try to type abc, I expect it recommend my visited s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Geometric series sum recursively in Python I have to write an algorithm that will compute the sum of a + a r + a r**2 + ... + a r**(n-1) recursively. I am very new to recursion and am having trouble wrapping my head around using three different variables while only using one recursively. Any help is greatly apprecia...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: check if input is equal to a value in a pandas column How can I check to see if user input is equal to a particular value in of a row in Pandas? The dataframe is from a CSV file. pyquiz.csv : variables,statements,true or false f1,f_state1, F t4, t_state4,T f3, f_state2, F f20, f_state20, F t3, t_state3, T I'm tryin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there something wrong with my verilog code? This is what I have so far. I don't know what the error means or what I should do to fix it. module gen_alu #( parameter N = 8 ) ( input logic [N-1:0] a, b, input logic [1:0] f, output logic [N-1:0] s, output logic co ); logic [N:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it bad practice to initialize a pointer to nullptr, and then allocate memory to it later based on if conditions? I have two questions about the following program: * *In function, is it bad practice to initialize a pointer to nullptr (MyClass* mcPtr = nullptr;) and then allocate memory to it later in an if-else ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Searching a string for a large list of terms I have a list of 1,500+ terms that can be multiple words long "apple", "apple banana". I want to search an input text of moderate length string (~500-1000) words for the indices of these words. This is my current approach: TERMS = ['apple', 'apple banana'] def find_indi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to stop the vim editor from repeatedly opening the Help window? I can't find this answer anywhere on the internet....can you help? Trying to edit files with vi on Ubuntu. vi mapped to vim, apprently. I type: vi vim opens the help. I close help with: :q vim opens help again on it's own, 3 second later the patter...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error when trying to run forked canvas-lms in GitHub Codespace: TypeError: Post is not a class I am attempting to run instructure’s canvas-lms through GitHub codespace and am encountering the following issue. I am using the free 4 core plan. The repository and instructions for the codespace setupcan be found here. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having trouble getting react-scroll to work while simultaneously having links that go to each section of the page I have learned how make it so with REACT Router you can click a button and go to a different page. I also just learned how to implement React-scroll where you can scroll down page to page. Is there any w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: commas within a field in a file using pyspark my data file contains column values that include commas teledyne.com', 'Teledyne Technologies is a leading provider of sophisticated electronic components, instruments & communications products, including defense electronics, data acquisition & communications equipment f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure Kubernetes Service - Find Logs for Pods Killed for OOM I am running my k8s cluster on Azure Kubernetes Service. Recently I faced an Issue where one of my Pods was killed by Kubernetes because it breached memory (my assumption). I am trying to find an entry in AzureDiagnostics or in any other table to what caus...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get my service worker to properly cache something? I have a site with a service worker (mainly for the purpose of offline function of PWA). The service worker's sole purpose is to listen to fetch events from the page, cache or retrieve from the cache, and then respond. Unfortunately, because I wanted a requ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VBA Send WM_SETTEXT no subwin but same class name I am trying to fill a form from an external program using VBA code and microsoft spy++ tool and WinAPI, however I reach a point where I can't identify the correct texbox to send the text I need, since the texboxes have the same name class. I have this code which send...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: unable to install forexconnect python package I have python 3.9.6. Pip install, python3 pip install none of these is able to install forexconnect(https://github.com/gehtsoft/forex-connect) package $ python3 -m pip install forexconnect ERROR: Could not find a version that satisfies the requirement forexconnect (from...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to group and sort array of data by their specific field This is my example data. I want to group the data by month and count which month has the most data and return 1 data per month which is the most appliancesType and count. appliances:[ { "appliancesType": "Oven", "createdAt": "2022-09-0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# : is it possible to run .NET Framework console application together with ASP.NET MVC? I have created a project using a console application in C# with .NET Framework, and I would like to integrate ASP.NET MVC into this project. While I understand that there is a .NET Core console application with MVC, I am buildin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Execute exe which needs input file in Python Is there any way to run exe with inputs in Python? For example, there are two files, aaa.exe and bbb.dat. To run the analysis, I need to put those two files on DOS prompt like below. aaa.exe read the bbb.dat file. It there any command or workaround for this? I tried os.sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I fix this error while read a txt file I try to read a txt file in windows and appear an Error warning : machine_delim <- read.delim("C:/KOMSTAT/mini project/machine.txt", header = TRUE, sep = "\t") Error in make.names(col.names, unique = TRUE) : invalid multibyte string at '<ff><fe>N' In addition: Warni...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular Material v15 Dark/Light Theme Trying to set dark theme in Angular Material v15 * *theme.scss: @use '@angular/material' as mat; @include mat.core(); @import 'bluegrey-palette'; $light-theme: mat.define-light-theme(( color: ( primary: $primary, accent: $accent, warn: $warn ) )); $dark-t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disabling language extension gives illegal declaration of anonymous struct error Consider code: #include <boost/json.hpp> #include <boost/filesystem.hpp> int main() { return 0; } When compiled with option /Za (which disables language extensions - in Visual Studio, this option is under Project->Properties->Conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: spyder python3.9 tensorflow 2.6(support gpu) from tensorflow.compat.v2.experimental import dtensor as dtensor_api erro why my code happen error? File "C:\Users\Tibame_EX14\.spyder-py3\GPU\UsingTensorflowBasic.py", line 18, in <module> from tensorflow.keras.callbacks import TensorBoard File "C:\Users\Tibame_EX...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SwiftUI how do I use .textFieldStyle(.myTextFieldStyle) instead of textFieldStyle(MyTextFieldStyle()) Apologies for the title. I don't know how to word this question properly because I have trouble finding what this is called. Please allow me to ask this question using examples instead... Basically I want to turn th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I want to send post with ajax in php code block but I get error I get an Ajax post error and I get an error like this in my console Uncaught TypeError: Illegal invocation at i (jquery.min.js:2:73313) at Dt (jquery.min.js:2:73205) at S.param (jquery.min.js:2:73524) at Function.ajax (jquery.min.js:2:76...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error while convering mp3 file to wav file format using python pydub module I am trying to convert my mp3 file to wav format but its giving error like this My Code from pydub import AudioSegment src = "my_result.mp3" dst = "final.wav" sound = AudioSegment.from_mp3(src) sound.export("final.wav",format="wav") But t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exception in thread "main". Uncompilable code - variable "___" might not have been initialized I am very new to Java and are just trying out some practice problems to test things out. The overall goal of this program is to compute the given sales tax when inputed and then use that sales tax to convert the subtotal i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Why does the value of regex.test() changes with every validation of form input value I am trying to validate form input value so that when a user types in their username and the input element loses focus, it'll check if the username follows a set of regex and displays an error for the user to enter a valid username....
{ "language": "en", "url": "https://stackoverflow.com/questions/75633614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change/cast Observable to Observable I am trying to use the async pipe with an observable in my receiving component so that I don't need to use OnDestroy (b/c the async pipe automatically subscribes and unsubscribes for me) In order to do this I need to change/cast/"push" an Observable<String> to an Observabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best course of Matlab? I want to learn matlab!! i want to make A.I models with matlab
{ "language": "en", "url": "https://stackoverflow.com/questions/75633616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How to use useEffect with dependency when focusing the screen only in react navigation? I want use useEffect with dependancy when the screen is focus in this screen. useEffect will keep listening when screen is focused, it will do something if the dependancyVar change. How can i do that? useFocusEffect( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Selenium I am trying to scrape a value off a website span HTML I am attempting to scrape the website to eventually return back the "+2.5" value in the span class that is shown but am having a lot of issues getting the CSS SELECTOR to work properly and return that value. I know this is far off but this was the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MinHashLSH Issue on PySpark I am trying to run a text similarity analysis using PySpark. After vectorizing my text inputs using CountVectorizer with a vocabSize=5000 I am running an approxSimilarityJoin on the data. When I do this, I get an error related to non-zero values on the input vectors. The error I am gettin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }