instruction
stringlengths
0
30k
Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
|android|node.js|sockets|io-socket|
I would like to see a three-way diff of three files, with every difference output as conflict in the git style. That is, common lines are shown verbatim, and differing sections of a file are shown with conflict markers "<<<<<<", "||||||", "======", and ">>>>>>" (also called "conflict brackets"): ``` common line 1 ...
Historically, the Visual Studio project files weren't XML files, and were gradually migrated to the now common XML MsBuild format. (This is discussed [here](https://github.com/dotnet/msbuild/issues/1730#issuecomment-671344494).) In particular, the VDPROJ project (old-style MSI installer project) is not an XML project a...
Somehow I am passing a nil to a NSDictionary when I select an image from the media library or take a photo with the camera (using expo image picker) Exception '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]' was thrown while invoking ...
[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
|javascript|react-native|
Yes. (see https://registry.khronos.org/OpenGL/specs/gl/glspec46.core.pdf#page=166&zoom=100,168,308) from rule 9 and 10 for `std430`: If the member is an array of S structures, the base alignment of the structure is N, where N is the largest base alignment value of any of its members. In the case of `std140`, this woul...
I installed Visual Studio 2022 and created new ASP.NET Core web app project with .NET 8.0 framework, but after creating project, while viewing solution explorer there is no templates of ASP.NET application, I am confused I installed .NET 8.0 and Visual Studio 2022, in Visual Studio I installed 3 workloads - ASP.NET ...
ASP.NET core web app not get created in visual studio 2022
|asp.net|visual-studio|asp.net-core|azure-devops|.net-8.0|
null
I am trying to open and run a model that was created in AnyLogic 7 in AnyLogic 8 (8.8.6, specifically), but I get the following error:[error message for opening model](https://i.stack.imgur.com/EKONC.png). Please advise. This model was created by my advisor and published on github with access via the Data Availability ...
I am trying to open/run a model that was created in AnyLogic 7 in the AnyLogic 8 software and I am unable to open the model
|anylogic|
null
I am a python developer and I am completely new in Java; is there a way in java to do something like this ? array[start:end] = [True] * (end -start) and something like this? array[start:end:2] = [True] * ((end-start)/2) I found something like this: Arrays.copyOfRange(oldArray, startIndex...
The problem is that my current implementation of the custom error component is using type casting which I would like to get rid of. Here is what I tried. I have following form values: ```ts type Item = { type: string; code: string; color?: string; value: number; } type MyFormValues = { items: Item[] ...
My website incorporates multilingual functionality, allowing content to be displayed in various languages. To facilitate this, language-specific data is stored in the MySQL database within JSON fields. This approach enables flexible storage of language-specific information, with each JSON field containing data in diffe...
How to make Laravel attribute cast get only one value?
|php|laravel|laravel-9|laravel-10|
null
I have a list of collapsible divs that is populated with data from a geoJson file and updated dynamically when you zoom in and out of a map, to reflect the markers that are within the bounds of the map. When you click on the Collapsible div it opens to show details about the feature. I would like to add a link/button ...
|python|python-3.x|django|django-models|
null
This is likely a bug from MAUI, as a workaround you can apply the below style in your "Platforms/Windows/App.xaml": ```xaml <maui:MauiWinUIApplication.Resources> <SolidColorBrush x:Key="ComboBoxForeground" Color="{StaticResource ComboBoxDropDownGlyphForeground}" /> <Color x:Key="ComboBoxDropDownGlyphFor...
I want to implement a set of classes, that can be used both with UInt16 and UInt32 type parameters. The first one represents the header of a telegram, that can be used both with UInt32 and UInt64 data types. *Any non essential fields have been ommitted!* Currently I am working with .NetFramework 4.7.2. and VS...
How to separate polygon and point legends in map ggplot2
|r|ggplot2|
null
|javascript|post|request|playwright|
As in title, I am working on an Android app that has already been published to Google Play Store (and therefore signed). I have been given full permissions (admin) to the app through Google Play Console. I assume that this way the client doesn't have to share his signing key but I am having trouble figuring out the req...
How do I sign a client's Android app in order to test in-app purchases?
|android|google-play|google-play-console|android-app-signing|
null
When writing async code, you need to code to the principle not the implementation. > Would the following program be safe to run without locks? No, the operation is non-atomic and a race condition. A task could read the variable, any other number of tasks in the meantime can read and write to the value, then the o...
Can't call javascript function from a hef tag in innerhtml - undefined
|javascript|undefined|innerhtml|dynamic-list|
null
Given the prerequisites of your original problem description incl. the following we consider status-quo not to touch (thanks for being that honest sharing them.) > Since setting up a CI/CD environment is (of course depending on the whole tech-stack) quite a lot of work, someone like a DevOps is needed to be the "Godfa...
null
You may consider this solution that would with any version of `awk`: ```sh printf '%s\n' "${arr[@]}" | awk -F, ' { for(i=1; i<NF; ++i) { row[$i] = (i == 1 ? "" : row[$i] ", ") $NF ++fq[$i] } } END { for (k in fq) print fq[k], k ":", row[k] }' | sort -rn -k1 3 test: meta, amazon, go...
{"Voters":[{"Id":11002,"DisplayName":"tgdavies"},{"Id":17795888,"DisplayName":"Chaosfire"},{"Id":9214357,"DisplayName":"Zephyr"}],"SiteSpecificCloseReasonIds":[11]}
Check if you have added a context path. if yes, you need to try -> >http://localhost:8080/{{serviceName}}/actuator/health And check the following in either `.properties` or `.yaml` file `management.endpoints.web.exposure.include= "*" ` include all endpoints on actuator or `management.endpoints.web.exp...
null
Check if you have added a context path. if yes, you need to try -> >http://localhost:8080/{{serviceName}}/actuator/health And check the following in either `.properties` or `.yaml` file : - `management.endpoints.web.exposure.include = * ` : if you want to include all endpoints on actuator - `management...
I just started to look at the documentation of Angular Signals and I am not able to make heads or tails of how to use it in the Authentication Service that I have made previously. ``` import { Injectable } from '@angular/core'; import { User, UserCredential, createUserWithEmailAndPassword, getAuth,...
Understanding how to apply Angular Signals from beginning on an existing service
|angular|angularjs|angular-signals|
null
I'm defining the following flag for my CLI in Golang: ```go var flags flag.FlagSet phoneRegexp := flags.String("phone_regexp", "", "custom regex for phone checking.") ``` But, it fails when I'm passing the following argument: ``` ./cli --phone_regexp='^\d{1,5}$' cli: no such flag -5}$ ``` While I un...
This is my models.py: class Person(models.Model): surname = models.CharField(max_length=100, blank=True, null=True) forename = models.CharField(max_length=100, blank=True, null=True) def __str__(self): return '{}, {}'.format(self.surname, self.forename) ...
My task is to create combinations, more like a Cartesian product for some attribute lines of a library file. I am currently facing the problem of grouping the same attributes(of course the adjacent parameters are different) as sublists of a list. Remember my input may contain a thousand lines of attributes , which I ne...
I'm writing a program that records from my speaker output using `pyaudio`. I am on a Raspberry Pi. I built the program while using the audio jack to play audio through some speakers, but recently have switched to using the speakers in my monitor, through HDMI. Suddenly, the program records silence. ``` from pyaudio i...
Read from audio output in PyAudio through loopbacks
|python|pyaudio|loopback|portaudio|pulseaudio|
I need help. I have a Dialog screen on mfc. In this screen, it has an "Add" button wherein it displays its member (up to 8) when it is clicked. I wanted to implement a scrollbar after Member 6 is added. How can I possibly implement as such. The code is with C++ and using MFC. Kindly advise. Thank you. ![DialogBox...
How to enable scrollbar in a specific group member added
|c++|mfc|
I distribute a ready-to-run software for Windows written in Python by: * shipping the content of an embedded version of Python, say `python-3.8.10-embed-amd64.zip` * adding a `myprogram\` package folder (= the program itself) * simply run `pythonw.exe -m myprogram` to start the program It works well. (possible s...
I'm making a discord bot to send a simple button, I've created a class called "MyView" which just says "You clicked me!" upon clicking. I don't have much knowledge about the 2024 updates to discord.py which mostly invalidate most tutorials. So if anyone could tell me what's happening and an easy fix, it would be much a...
I'm getting a "RunTimeError: No running event loop" exception in my discord.py python script. I don't know why it's happening
|python|discord.py|
null
One potential solution to your problem is to convert the background image to Base64 code and insert it into your CSS code. You can use a lot of tools for conversion, in the most cases I used [this online tool](https://www.base64-image.de/). Usage: 1. Download the image file. 2. Upload it on this site 3. ...
You are probably experiencing an issue with a firewall. The 'problem' is that the port you specify is not the only port used, it uses 1 or maybe even 2 more ports for RMI, and those are probably blocked by a firewall. One of the extra ports will not be know up front if you use the default RMI configuration, so you h...
We have EKS cluster for production with K8s version 1.28. We have to upgrade the version to 1.29 but stucked because of following error showing in AWS Console in Upgrade insights section: [AWS Console][1] I can see all the apis versions are already up to date but not getting why this error is showing in...
I am using different numerical methods to understand the results yielded from different types of integrators at different time steps. I am comparing the performance of each integration method by calculating the Mean Absolute Error of the predicted energy with the analytical solution: `$$ MAE = \frac{1}{n} \sum_{i=0}^{n...
Optimum Tine step for Verlet's method to solved Damped Simple Harmonic Motion ODE
null
You are probably experiencing an issue with a firewall. The 'problem' is that the port you specify is not the only port used, it uses 1 or maybe even 2 more ports for RMI, and those are probably blocked by a firewall. One of the extra ports will not be know up front if you use the default RMI configuration, so you h...
Interestingly under RHEL8.9 and NodeJS v12.22.0, I use npm to start my client and server instances. There is an operator for npm called stop but it fails in a missing script error each time. Based on your blog here, npx does work normally with npx stop server, for one example. However, nodemon is still resident in memo...
In this case, Jackson is actually behaving as intended and there is an issue in your deserialization logic. Ultimately, you want bad enum values to throw an error and return that error to the user. This is infact the default behaviour of spring and Jackson, and will result in a `HTTP 400 BAD REQUEST` error. IMO This is...
null
I am plotting covariates against predicted occupancy models using the unmarked package, three of my covariates are continuous so I have plotted using predict function and ggplot, geom_ribbon. However obviously this doesn't work with categorical/factor variables, I would like to be able to plot as a boxplot the predicte...
|python|numpy|numerical-integration|verlet-integration|
null
|c#|generics|.net-4.7.2|
I've implemented something similar a while ago. For a nice type to help with declaring your default config: type Primitive = undefined | null | boolean | string | number; // Deeply make all fields optional type DeepOptional<T> = T extends Primitive | any[] ? T // If primitive or array then r...
im new to coding and want to make a code in wolfram mathematica. what i want to do is decompose a perfect number into fractions for each digit. example for the 2nd perfect number: i want 28 to be written as 20/100 and 8/100. i want to do this for the bigger perfect numbers aswell so i need a general code. next i...
wolfram mathematica code vs. wolfram alfa discrepancy in calculation of common divisors? help me pls :)
|wolfram-mathematica|
I am encountering a 'System.Text.Json.JsonException' with the message "'O' is an invalid start of a value" while attempting to deserialize MongoDB BSON documents using the ASP.NET Core MongoDB driver. The issue arises when using JsonSerializer.DeserializeAsync method. I have verified the JSON structure and MongoDB do...
yes, it is possible to perform Load testing using Simulator. We can record and develop PVT scripts using simulator and execute in Controller.
I'm struggling to implement dynamic role-based routing with the latest version of react-router-dom (v6.22.3). I have some ideas, but I'm finding it difficult to implement them fully. ** I familiar with examples described here [link][1] *** Goal description : 1. define roles in the router 2. consume it i...
I ran into the same issue and have found a workaround. In my viewmodel I have an ObservableCollection Projects which is displayed using a CollectionView on my ContentPage. Then I have the following method: public async Task ReloadProjects() { var temp = Projects.ToList(); Projects.Clea...
You have incorrect usage of `PUTS`. FYI, `PUTS` is shorthand `TRAP #22`. `PUTS` requires the address of null-character terminated string to print goes in `R0`, and that's the only register used to pass parameter to `puts`.&nbsp; (By passing 0 or 1 to `PUTS` (i.e. in `R0`) as you're doing now, it will fail in some m...
I agree with Phys, you have to have the entire disk space available of the dataset to use tfds.load. The tfds.load command runs the three commands, as stated on [tdfs load][1]: 1. It does not take disk space > builder = tfds.builder('open_images_challenge2019_detection') 2. It downloads the data to the disk ...
The main issue in your code is because you're nesting event handlers, ie. the native JS one and a jQuery one. This is causing odd behaviour where you need to click multiple times for the logic to have any effect. You can avoid the issue by just using one event handler to hide/show the element on succesive clicks: Al...
null
I created virtual machine scale set and i followed the below documentation to configure it as an agent pool in azure devops. https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/scale-set-agents?view=azure-devops#troubleshooting-issues After configuring , i cant find the agents under the agent pool cre...
Virtual Machine Scale Sets - Error Installing Microsoft.VisualStudio.Services.TeamServicesAgent
|azure|azure-devops|azure-vm-scale-set|
null
I need to plot a geographical distribution of five different instruments. Some locations can have only 1 instrument whereas other locations can have a combination of more than 1 instrument. I want to use a marker which would indicate which combination of instruments is present at each location. My idea is to use a p...
Custom multi-coloured markers in python
|python|matplotlib|matplotlib-basemap|
This doesn't have much to do with web3. It's more of a typescript question. See fixes below with comments: import { BrowserProvider, ethers, JsonRpcSigner } from "ethers"; import { useToast } from "@chakra-ui/react"; import { useCallback, useEffect, useState } from "react"; import { MetaMaskInpage...
You need to pass `user_id` in the `useEffect`'s dependency array and check if it's defined or not. Because on first render it's undefined because redux didn't provided it yet. ``` useEffect(() => { if(user_id){ setLoading(true); PendingServices.getPendingTransaction( `localhost:8000/use...