Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,632,506 | 1 | null | null | 0 | 16 | Yesterday, my VS Code started highlighting html tag carrots in red in my react app. Does anyone know what is causing this? [](https://i.stack.imgur.com/Zy3m9.png)
I am tried fixing my registry, restarting computer, all my jsx files are highlighted in this way now. I can confirm it only happens with React files, not all... | HTML tags close carrots highlighted red for some reason | CC BY-SA 4.0 | null | 2023-03-03T22:50:54.437 | 2023-03-03T22:50:54.437 | null | null | 12,370,694 | [
"html",
"reactjs",
"visual-studio-code",
"syntax-highlighting"
] |
75,632,498 | 1 | null | null | -8 | 27 | ```
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
// TODO: Your code below this line
System.out.print("Enter a number: ");
int userNum = scnr.nextInt();
String [] userStringList = new String[userNum];
... | Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 4 at Main.main(Main.java:24) error | CC BY-SA 4.0 | null | 2023-03-03T22:49:53.537 | 2023-03-03T22:50:20.890 | 2023-03-03T22:50:20.890 | 3,636,601 | 21,328,939 | [
"javascript",
"java",
"arrays",
"string",
"indexing"
] |
75,632,509 | 1 | null | null | 0 | 28 | Assuming I create a TcpStream object:
```
var tcpClient = new TcpClient("host", 443);
var tcpStream = tcpClient.GetStream();
```
Is it possible to use the connected stream as the underlying transport for an HttpClient?
Pseudo'ish, meaning:
```
var httpClient = new HttpClient(tcpStream); // Pseudo-code
```
So the http... | HttpClient using existing TcpStream | CC BY-SA 4.0 | null | 2023-03-03T22:51:06.783 | 2023-03-03T22:51:06.783 | null | null | 10,723,086 | [
"c#",
"httpclient",
"tcpclient"
] |
75,632,514 | 1 | null | null | -7 | 29 | I am performing modulo operations and the two operands are in different bases. The question is such that the operand on the left must be in base 40. Do I have to change the second operand on the right which is in base 10 to base 40 too or I can proceed with the operation?
Thanks in advance.
I dont know what to do.
| Can you perform an arithmetic operation where the two operands are in different bases? | CC BY-SA 4.0 | null | 2023-03-03T22:51:56.417 | 2023-03-03T23:39:40.160 | 2023-03-03T23:39:40.160 | 16,675,150 | 16,675,150 | [
"math",
"modulo"
] |
75,632,502 | 1 | null | null | 1 | 42 | I'm writing something that will read ranges of data from files at specific offsets from different types of filesystems.
I want to be as idiomatic as possible, and use Go's `io/fs` abstraction.
`io.FS` is pretty minimalistic, and offers just one way to access files:
`Open(name string) (File, error)`
The `File` interface... | What's the idiomatic way to use io.ReaderAt with the io/fs abstraction? | CC BY-SA 4.0 | null | 2023-03-03T22:50:40.390 | 2023-03-03T22:50:40.390 | null | null | 2,671,688 | [
"go"
] |
75,632,508 | 1 | null | null | 0 | 21 | I am creating a tkinter GUI using ttk, and I have downloaded and imported the Azure theme for my project. I then tried to change the color of one of the buttons to red using a style but this didn't work despite no errors coming up. The button just remains the default for that theme (it does respond to other options I c... | ttk button background not changing color after theme has been set - python tkinter | CC BY-SA 4.0 | null | 2023-03-03T22:51:01.387 | 2023-03-04T02:17:04.100 | null | null | 21,315,126 | [
"python",
"tkinter",
"themes",
"ttk"
] |
75,632,512 | 1 | null | null | 0 | 13 | Imagine we want to create a UTIL.HPP file specifying some utility functions and a UTIL.CPP to implement them.
Why can't we have in the UTIL.HPP both template functions and regular functions?
The code below doesn't compile (the compiler complains about duplicate symbols):
```
********************************************... | C++ Generic programming: HPP and CPP with template functions and regular functions | CC BY-SA 4.0 | null | 2023-03-03T22:51:43.897 | 2023-03-03T22:51:43.897 | null | null | 1,881,329 | [
"c++",
"generics"
] |
75,632,511 | 1 | null | null | 0 | 30 | So the problem wants me to input a string, parse it for words (not removing punctuation) and then putting the words into a vector. Then, I need to replace words that appear more than once with a matching integer value, to sort of mimic the concept of file compression. It is specified that I must use dictionaries to sto... | How to replace a string with an integer using mapping? | CC BY-SA 4.0 | null | 2023-03-03T22:51:21.697 | 2023-03-03T22:51:21.697 | null | null | 21,327,298 | [
"c++",
"dictionary"
] |
75,632,518 | 2 | null | 65,819,424 | 0 | null | According to [the source](https://github.com/moby/buildkit/pull/1754/files) it's possible to completely eliminate any limitations using `-1` value for both variables:
```
$ docker buildx create --bootstrap --use --name buildkit \
--driver-opt env.BUILDKIT_STEP_LOG_MAX_SIZE=-1 \
--driver-opt env.BUILDKIT_STEP_LO... | null | CC BY-SA 4.0 | null | 2023-03-03T22:52:29.080 | 2023-03-03T22:52:29.080 | null | null | 265,374 | null |
75,632,510 | 2 | null | 75,632,001 | 2 | null | [map(_:)](https://developer.apple.com/documentation/swift/sequence/map(_:)), [filter(_:)](https://developer.apple.com/documentation/swift/sequence/filter(_:)), [reduce(_:_:)](https://developer.apple.com/documentation/swift/sequence/reduce(_:_:)), and many other similar higher-order functions are all provided by the [Se... | null | CC BY-SA 4.0 | null | 2023-03-03T22:51:15.073 | 2023-03-03T22:51:15.073 | null | null | 169,394 | null |
75,632,515 | 1 | null | null | 0 | 16 | I moved the creation of one of my classes to a background thread in my C#/WPF app. It exposes a Prism `DelegateCommand` object. Suddenly my app starts crashing. I think my hack of a fix is the wrong way to go but I don't know a better one. Can someone tell me?
This is the command I create in the constructor.
```
An... | SynchronizationContext Problems with Prism DelegateCommand created on a background thread | CC BY-SA 4.0 | null | 2023-03-03T22:52:06.043 | 2023-03-03T22:52:06.043 | null | null | 5,869,304 | [
"c#",
"wpf",
"prism",
"synchronizationcontext"
] |
75,632,520 | 2 | null | 75,632,012 | 0 | null | @karl knechtel solved this for me (I completely forgot about partial!)
Here is how I handled it:
```
from functools import partial
.
.
.
string_var = StringVar(self.root)
string_var.set('Select an Event')
widget = OptionMenu(self.frame_main, string_var,
... | null | CC BY-SA 4.0 | null | 2023-03-03T22:52:52.240 | 2023-03-03T22:52:52.240 | null | null | 1,039,860 | null |
75,632,522 | 2 | null | 73,448,555 | 0 | null | following on what Futureweb mentioned, I had to force my PHP version in the Homestead.yaml file and then run:
```
vagrant reload --provision
```
I then managed to get it working.
| null | CC BY-SA 4.0 | null | 2023-03-03T22:53:11.653 | 2023-03-03T22:53:11.653 | null | null | 6,773,385 | null |
75,632,519 | 1 | null | null | 0 | 21 | I am calling a web API that returns a JSON string. This is the first time I am using HttpClient and I can't figure out how to get a function to return a string.
```
Public Async Function CallWebAPI(sIPAddress As String, sCommand As String) As Task(Of String)
Try
Using client As HttpClient = New HttpClient... | Using HttpClient.ReadAsStringAsync() to return result string via function | CC BY-SA 4.0 | null | 2023-03-03T22:52:41.087 | 2023-03-04T09:43:11.137 | 2023-03-04T09:43:11.137 | 1,115,360 | 412,421 | [
"vb.net",
"httpclient"
] |
75,632,496 | 1 | null | null | 0 | 7 | I've been at this for over an hour and all I have managed to conclude is that I need help.
I'm on a new computer where I haven't been doing SharePoint Framework development, but now a bug has come up with one of the web parts and I need to get back at it. I tried to do an npm install of my cloned code when I started g... | Continued Issues with NPM Install | CC BY-SA 4.0 | null | 2023-03-03T22:49:42.820 | 2023-03-03T22:49:42.820 | null | null | 21,328,926 | [
"sharepoint",
"node-modules",
"sharepoint-online",
"spfx"
] |
75,632,524 | 2 | null | 69,946,630 | 0 | null | It's not really clear what exactly you want to accomplish. I'm going to assume that what you want to do is to read a hexadecimal 64-bit number and then print that number in hexadecimal format, on x86 Windows.
You can't directly read 64 bits (one qword) from a memory address (`num1`) on a 32-bit platform. Hence, you ha... | null | CC BY-SA 4.0 | null | 2023-03-03T22:53:21.733 | 2023-03-03T22:53:21.733 | null | null | 4,454,665 | null |
75,632,521 | 1 | null | null | 0 | 3 | I need to pull a bunch of tables from a census, API for Maryland and Baltimore city Maryland together. I would either like as many tables as possible, or a list that I can input.
I can’t get it to work
Census api help
Is there anyway to pull only the latest data for the census api?
[https://api.census.gov/data/2021/acs... | How to use CensusReporter API or Census API to always pull latest? | CC BY-SA 4.0 | null | 2023-03-03T22:53:06.550 | 2023-03-03T22:53:06.550 | null | null | 13,203,033 | [
"api",
"post",
"get",
"pull",
"census"
] |
75,632,523 | 2 | null | 75,631,992 | 1 | null | It sounds like there might be a timing issue with the value of selectedContactId being passed down to the child component. One possible solution is to use useEffect in the child component to monitor changes to the contactIdentifier prop and perform any necessary updates when it changes.
Here's an updated version of Col... | null | CC BY-SA 4.0 | null | 2023-03-03T22:53:15.047 | 2023-03-03T22:53:15.047 | null | null | 15,684,715 | null |
75,632,527 | 2 | null | 75,628,187 | 1 | null | I will answer for Cordova only. Since you didn't mention the version, not sure this will work for you. You can set a scheme and hostname in preferences, such as
```
<preference name="scheme" value="https" />
<preference name="hostname" value="whatever" />
```
| null | CC BY-SA 4.0 | null | 2023-03-03T22:53:34.613 | 2023-03-03T22:53:34.613 | null | null | 749,657 | null |
75,632,528 | 2 | null | 75,631,812 | 2 | null | The problem is that the operator `->` is not leakproof:
```
SELECT oprcode
FROM pg_operator
WHERE oprname = '->'
AND oprleft = 'jsonb'::regtype
AND oprright = 'text'::regtype;
oprcode
════════════════════
jsonb_object_field
(1 row)
SELECT proleakproof
FROM pg_proc
WHERE proname = 'json_object_field'... | null | CC BY-SA 4.0 | null | 2023-03-03T22:53:37.213 | 2023-03-03T22:53:37.213 | null | null | 6,464,308 | null |
75,632,529 | 1 | null | null | 0 | 11 | I want to import a text file that contains information about RAO (response amplitude operator) in a model created using the Lib OrcFxAPI.
I searched in this lib and I found a function called `ImportVesselTypeData()`, but when I try to call this function, the message "this function does not exist" appears.
How do I impo... | Import RAO using OrcFxAPI | CC BY-SA 4.0 | null | 2023-03-03T22:53:38.537 | 2023-03-03T23:58:19.190 | 2023-03-03T23:58:19.190 | 19,070,573 | 21,328,892 | [
"python",
"api"
] |
75,632,526 | 1 | null | null | 0 | 21 | I can easily get some single attribute from set of selectors, but cannot create some sort of object or associative array with some "key" and "value".
This works with 2 attributes
```
const kefs = await page.$$eval("div[data-event-treeid]", msgs =>
msgs.map(msg => {
return {
name: msg.getAttribute("data-even... | How to create an object or associative array with puppeteer evaluate or eval methods? | CC BY-SA 4.0 | null | 2023-03-03T22:53:28.390 | 2023-03-04T01:16:56.407 | 2023-03-03T23:29:41.763 | 21,328,877 | 21,328,877 | [
"javascript",
"arrays",
"puppeteer",
"eval",
"evaluate"
] |
75,632,530 | 2 | null | 75,632,333 | 5 | null | The short answer is: you can't guarantee it, and shouldn't rely on it to be the case, especially across machines, version, etc.
Sets in particular follow very closely the mathematical definition of a set, and have no ordering.
If you need to rely on the order of keys or elements, you can use the [OrderedCollections](ht... | null | CC BY-SA 4.0 | null | 2023-03-03T22:53:45.893 | 2023-03-03T22:53:45.893 | null | null | 21,328,933 | null |
75,632,534 | 2 | null | 75,632,133 | 0 | null | simply ignore the skip div and take only odd values of element divs like so:
```
div.element:nth-child(odd){
background-color: black;
color: white;
}
```
[https://codepen.io/ibrahim-abboud/pen/JjaNVPR](https://codepen.io/ibrahim-abboud/pen/JjaNVPR)
| null | CC BY-SA 4.0 | null | 2023-03-03T22:54:28.740 | 2023-03-03T22:54:28.740 | null | null | 21,056,235 | null |
75,632,532 | 1 | null | null | -3 | 13 | I have to run an app that was built in VS2013 on my local machine that has VS 2017 installed but it I get compilation errors, and in my local version, when I view any of the Razor views in VS, they are all containing errors of this nature:
[](https://i.stack.imgur.com/0rVVd.png)
When I run the application, I get this c... | Why doesn't legacy ASP.NET MVC app compile after upgrade to VS 2017? | CC BY-SA 4.0 | null | 2023-03-03T22:53:52.897 | 2023-03-04T07:47:45.447 | 2023-03-04T07:47:45.447 | 13,302 | 2,166,143 | [
"asp.net",
"asp.net-mvc",
"visual-studio-2017"
] |
75,632,538 | 2 | null | 75,596,819 | 0 | null | Thanks to user stuartd for pointing me in the direction of `TypeNameHandling`. As it turns out, setting `TypeNameAssemblyFormatHandling.Full` in `JsonSerializerSettings` to use fully qualified assembly names in resolution and caching of type information will keep the assemblies' type information separated, provided tha... | null | CC BY-SA 4.0 | null | 2023-03-03T22:55:04.347 | 2023-03-03T22:55:04.347 | null | null | 1,509,292 | null |
75,632,536 | 1 | null | null | 0 | 8 | I was trying to make an IRC bot in ruby, and get some really strange error. I didn't find anything in the web about it. There error is `Connection reset by peer @ io_fillbuf - fd:5 (Errno::ECONNRESET)` It's weird, and I can't fix it! Here's my code:
```
# This is a basic IRC bot in Ruby
require 'socket'
# Server info... | IRC error in bot written on ruby Connection reset by peer @ io_fillbuf - fd:5 (Errno::ECONNRESET) | CC BY-SA 4.0 | null | 2023-03-03T22:54:37.383 | 2023-03-03T22:54:37.383 | null | null | 21,328,936 | [
"ruby",
"web",
"bots",
"chatbot",
"irc"
] |
75,632,535 | 2 | null | 75,629,097 | 0 | null | There isn't built-in support for that goal, but you should be able to do it manually.
Since we have `save_pred = TRUE` in `control_grid()`, we can get all of those predictions using `collect_predictions()` with `summarize = FALSE`.
Then a series of {dplyr} functions and `rmse()` which can be applied to grouped data.fra... | null | CC BY-SA 4.0 | null | 2023-03-03T22:54:29.667 | 2023-03-03T22:54:29.667 | null | null | 4,912,080 | null |
75,632,539 | 2 | null | 75,598,629 | 0 | null | Pointer is a memory address. A memory address itself is 32-bit. It is the data it's pointing to that is different. When you have pointer to 32-bit integer, the compiler generates instructions that load and store 32 bits of data at a time. When you have a pointer to 16-bit integer, the compiler generates instructions th... | null | CC BY-SA 4.0 | null | 2023-03-03T22:55:19.973 | 2023-03-03T22:55:19.973 | null | null | 5,932,454 | null |
75,632,525 | 1 | null | null | 0 | 27 | I'm wanting to enable the use of a third-party account (in my case a Google account) to create a new user without having to fill out the normal user registration form, but I'm having problems logging in with the user that I registered using the account third
On my login.blade.php page the error is being pointed at the... | Problems registering and logging in a user using Laravel Socialite | CC BY-SA 4.0 | null | 2023-03-03T22:53:23.457 | 2023-03-04T01:58:49.683 | null | null | 21,247,199 | [
"php",
"laravel"
] |
75,632,542 | 2 | null | 19,139,330 | 0 | null | ```
\set PROMPT1 '%[%033[1;93;1m%]%`date +%H:%M:%S`%[%033[0m%] %[%033[96m%]%n@%/%R %# %[%033[0m%]'
```
I found that you need to prefix with %[ and end with %]
If you do that, the problem goes away, but you have to do it for EACH escape sequence
| null | CC BY-SA 4.0 | null | 2023-03-03T22:55:36.840 | 2023-03-03T22:55:36.840 | null | null | 17,975,659 | null |
75,632,540 | 2 | null | 14,794,267 | 0 | null | With recent C# versions, one can just use `Last()` or `LastOrDefault()` on a string in C# to return last char.
```
string sample = "sample string";
char lastCharacter = sample.Last();
if (lastCharacter == 'A' || lastCharacter == 'B' || lastCharacter == 'C')
{
Console.WriteLine(lastCharacter);
}
else if (lastChar... | null | CC BY-SA 4.0 | null | 2023-03-03T22:55:28.863 | 2023-03-03T23:08:14.460 | 2023-03-03T23:08:14.460 | 539,251 | 539,251 | null |
75,632,546 | 2 | null | 75,632,383 | 2 | null | Use the ctid:
```
delete from primary_location pl
where exists
(
select null
from primary_location pl2
where pl2.id = pl.id
and pl2.name = pl.name
and pl2.point = pl.point
and pl2.closest_community_id = pl.closest_community_id
and pl2.ctid > pl.ctid
);
```
| null | CC BY-SA 4.0 | null | 2023-03-03T22:57:52.477 | 2023-03-03T22:57:52.477 | null | null | 2,270,762 | null |
75,632,543 | 2 | null | 75,629,364 | 1 | null | It is actually pretty simple: commit list is just an array of `GitCommitRef`. That means you can use multiple commits like this:
```
source = @{
commitList = @(
@{
commitId = '4a419de68788eeb8888c0d04513d48e01ed88a17'
},
@{
commitId = '7feb89d5... | null | CC BY-SA 4.0 | null | 2023-03-03T22:55:38.770 | 2023-03-03T22:55:38.770 | null | null | 8,294,653 | null |
75,632,547 | 1 | null | null | 0 | 4 | When we create a data set , how to pass the parameter to queries.
Example, I want to have a outer join with A table which doesnt apply any criteria and B table apply criteria in which need to pass a parmeter.
| Dynamic Parameter Passing to Dataset in AWS Quicksight | CC BY-SA 4.0 | null | 2023-03-03T22:57:57.523 | 2023-03-03T22:57:57.523 | null | null | 4,094,264 | [
"amazon-web-services",
"amazon-quicksight"
] |
75,632,544 | 1 | null | null | 0 | 11 | I am reading the following piece of code in [Netflix conductor SDK](https://github.com/conductor-sdk/conductor-javascript/blob/main/src/common/types.ts#L200-L204).
```
type O2T<O extends {}> = {} extends O
? []
: {
[key in keyof O]: [key, ...O2T<O[key]>];
}[keyof O];
```
After importing this sdk into my ... | typescript conditional generic type in Netflix conductor sdk | CC BY-SA 4.0 | null | 2023-03-03T22:56:23.340 | 2023-03-03T22:56:23.340 | null | null | 10,576,964 | [
"typescript",
"typescript-generics",
"netflix-conductor"
] |
75,632,517 | 1 | null | null | -2 | 18 |
I am building a java project using Gradle, in Visual Studio.
It uses the LWJGL library, and when I initialize the window I get this error :
```
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:100)
at org.lwjgl.system.Pointer$Defau... | Gradle project causing path errors not there otherwise | CC BY-SA 4.0 | null | 2023-03-03T22:52:09.163 | 2023-03-03T23:17:35.480 | 2023-03-03T23:17:35.480 | 21,328,922 | 21,328,922 | [
"java",
"exception",
"gradle",
"path"
] |
75,632,533 | 1 | null | null | 1 | 31 | I'm trying to a gpg file containing an archived directory (via tar) with my important files. Here's the output when I run my decryption script or run the decrypt line outside of the script
```
gpg: AES256.CFB encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
```
This is the messa... | Unable To Decrypt GPG File: Bad Session Key | CC BY-SA 4.0 | null | 2023-03-03T22:54:02.383 | 2023-03-04T20:51:02.690 | 2023-03-04T20:51:02.690 | 8,134,554 | 8,134,554 | [
"linux",
"bash",
"encryption",
"gnupg",
"alsa"
] |
75,632,537 | 1 | null | null | 0 | 15 | I can't get the multi-select data to populate, but the single select one works.
Directed below is the HTML for the single select part that displays pre-populated data that works
```
<h2>Current Type:</h2>
<ng-select
class="type-select"
bindLabel="type"
bind... | Pre-populate ng select - multiple select with data from api | CC BY-SA 4.0 | null | 2023-03-03T22:54:54.233 | 2023-03-03T22:54:54.233 | null | null | 21,328,906 | [
"javascript",
"html",
"angular",
"typescript",
"ngx-select-dropdown"
] |
75,632,548 | 2 | null | 75,562,648 | 1 | null | Regarding your first problem:
I use the following on a NSSavePanel which brings the panel window to the front of the stack.
```
let panel = NSSavePanel()
…
panel.begin { … }
panel.orderFrontRegardless()
```
From Apple's documentation:
> orderFrontRegardless()Moves the window to the front of its level, even if its app... | null | CC BY-SA 4.0 | null | 2023-03-03T22:58:14.843 | 2023-03-03T22:58:14.843 | null | null | 4,875,454 | null |
75,632,550 | 2 | null | 75,631,669 | 0 | null | Seems the line of code is a little off. A quick demonstration:
- Code block:```
driver.get("https://www.google.com/");
new WebDriverWait(driver, Duration.ofSeconds(10)).until(ExpectedConditions.titleIs(("Google")));
System.out.println(driver.getTitle());
```
- Console Output:```
Google
```
---
## This usecase
Ac... | null | CC BY-SA 4.0 | null | 2023-03-03T22:58:23.053 | 2023-03-03T22:58:23.053 | null | null | 7,429,447 | null |
75,632,552 | 2 | null | 75,550,938 | 0 | null | nlapiSetFieldValue isn't a member of the search result object. You can just call the function directly if this is a client script or if it's a user event or otherwise you will need to load a record using `nlapiLoadRecord(type, id)` and update it with `recordObj.setFieldValue(fieldId, value)`
```
var netsuiteInformation... | null | CC BY-SA 4.0 | null | 2023-03-03T22:58:45.577 | 2023-03-03T22:58:45.577 | null | null | 13,787,013 | null |
75,632,541 | 2 | null | 75,629,954 | 0 | null | I now searched through the Symfony docs once again and chose the following approach for me:
I created an `EntitySubscriber` as described here: [https://symfony.com/doc/current/doctrine/events.html#doctrine-lifecycle-subscribers](https://symfony.com/doc/current/doctrine/events.html#doctrine-lifecycle-subscribers)
After ... | null | CC BY-SA 4.0 | null | 2023-03-03T22:55:32.470 | 2023-03-03T22:55:32.470 | null | null | 5,630,066 | null |
75,632,554 | 1 | null | null | 0 | 6 | I tried to make annotations a property of the component itself instead of the chartOptions, but it still does not work.
I'd like the chart to stay as it is, meanwhile the annotation will be update frequently. Is there a way to achieve this?
| How to stop the entire ApexChart from rerendering on annotation update | CC BY-SA 4.0 | null | 2023-03-03T22:59:37.663 | 2023-03-03T22:59:37.663 | null | null | 17,043,775 | [
"angular",
"apexcharts",
"ng-apexcharts"
] |
75,632,555 | 2 | null | 75,535,023 | 1 | null | I tried using your example and it seems to work fine without error on Windows 10. Pyglet 2.0.5.
I get this result after that then saving it:
[](https://i.stack.imgur.com/Dc1Nr.png)
| null | CC BY-SA 4.0 | null | 2023-03-03T22:59:49.310 | 2023-03-03T22:59:49.310 | null | null | 5,380,656 | null |
75,632,556 | 1 | null | null | 0 | 16 | Is there a way to get EF Core to honour `MetadataType` annotations for MaxLength etc when creating DB migrations?
I've created a person class and decorated it with `MetadataType` but the annotations aren't considered when I add a DB migration.
| Can EF Core use MetadataType for migrations? | CC BY-SA 4.0 | null | 2023-03-03T22:59:53.447 | 2023-03-03T22:59:53.447 | null | null | 61,311 | [
"entity-framework-core"
] |
75,632,560 | 2 | null | 75,631,952 | 0 | null | you should change your base url to: `http://10.0.2.2:8080` if you do want to hit your local enviroment.
i assumed that you are using `:8080` for your port.
| null | CC BY-SA 4.0 | null | 2023-03-03T23:00:34.043 | 2023-03-03T23:00:34.043 | null | null | 4,862,911 | null |
75,632,553 | 1 | null | null | 0 | 10 | I am using javascript to extract data from a .json (tmdb)
Attached file [Api code](https://www.mediafire.com/file/2e5n3mg8pnfs5d4/api.rar/file)
This is the code I'm using to extract the data from tmdb "still_path" & "episode_number".
```
"next_episode_to_air" == e && ((g = l.next_episode_to_air.still_path),
$('#next_st... | Extracting data from .json TMDB api with javascript Error | CC BY-SA 4.0 | null | 2023-03-03T22:59:29.993 | 2023-03-04T01:28:06.727 | 2023-03-04T01:28:06.727 | 21,137,077 | 21,137,077 | [
"javascript",
"imdb"
] |
75,632,551 | 1 | null | null | 0 | 28 | When I try to get the body out of the new `export async function POST( req: Request)` I am getting it as a stream instead of the content type.
Here is the route handler located in `api/auth/signup`
[Folder layout image](https://i.stack.imgur.com/04fYn.png)
```
export async function POST( req: NextRequest ) {
//Sen... | Next 13 Route Handler having issues getting data from body (app/api/auth) | CC BY-SA 4.0 | null | 2023-03-03T22:58:38.003 | 2023-03-04T14:57:59.350 | null | null | 13,150,183 | [
"javascript",
"typescript",
"routes",
"next.js"
] |
75,632,549 | 1 | null | null | 0 | 16 | There is this website with a `/sitemap.xml` file such as follows:
```
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://example.com/es/</loc>
<lastmod>2023-02-15</lastmod>
<changefreq>monthly</c... | Parse website sitemap.xml using Ansible XML | CC BY-SA 4.0 | null | 2023-03-03T22:58:19.207 | 2023-03-04T17:51:16.573 | null | null | 10,308,937 | [
"xml",
"loops",
"ansible",
"sitemap"
] |
75,632,557 | 2 | null | 69,748,807 | 0 | null | This is likely an instance of a common Python issue in writing files: unless you close them immediately, they may not be flushed and closed until the process exits, or the file reference is garbage collected.
A common cause would be the process shutting down in an unplanned way (crash in interpreter or library).
This c... | null | CC BY-SA 4.0 | null | 2023-03-03T23:00:02.843 | 2023-03-03T23:00:02.843 | null | null | 12,379,462 | null |
75,632,559 | 1 | null | null | 0 | 4 | I am dividing two queries to find a percentage data. Sometimes the query in the numerator receives any data, because the value doesn't exist. But when I divide by the other query it still retrieves data as 1's.
```
(count(job{branch="qa", status="failed", project_id="123"}) OR vector(0))/(count(job{branch="qa", status=... | Dividing using vectors, but | CC BY-SA 4.0 | null | 2023-03-03T23:00:33.537 | 2023-03-03T23:00:33.537 | null | null | 12,427,226 | [
"prometheus",
"promql",
"victoriametrics"
] |
75,632,558 | 1 | null | null | 0 | 8 | My question is how will you achieve flink streaming based on the picture below ...
here are the steps
1. I get streams in kafka (each msg in the stream has an id)...
2. I process the streams in a process function
3. Based on the process i sub divide the streams into multiple streams, but these streams are dynamic.. Me... | How can i achieve a complicated flink pattern from single stream to multiple and then join back to single stream | CC BY-SA 4.0 | null | 2023-03-03T23:00:16.300 | 2023-03-05T01:42:21.630 | null | null | 2,386,966 | [
"apache-flink",
"flink-streaming"
] |
75,632,567 | 1 | null | null | -3 | 17 | I'm a university student working on a thesis about price monitoring for accommodations. I'm trying to use the Booking API to gather availability and room information, but I've discovered that it's not available. Can anyone suggest alternative APIs or resources that I could use to gather this data? I've also looked into... | APIs for accommodation search and price comparison: Similar to Booking.com | CC BY-SA 4.0 | null | 2023-03-03T23:02:01.923 | 2023-03-04T23:07:49.200 | 2023-03-04T23:07:49.200 | 17,643,256 | 17,643,256 | [
"api",
"web-scraping"
] |
75,632,562 | 2 | null | 75,631,315 | 1 | null | Instead of join all the filtered words into `io.StringIO` buffer and loading it to a dataframe, a much more straightforward/quick way is using `collections.Counter` with its [most_common](https://docs.python.org/3/library/collections.html#collections.Counter.most_common) function to get word counts right away:
```
impo... | null | CC BY-SA 4.0 | null | 2023-03-03T23:00:55.517 | 2023-03-03T23:00:55.517 | null | null | 3,185,459 | null |
75,632,566 | 1 | null | null | 0 | 18 | ```
from django.forms import ModelForm
from django import forms
from .models import Project
class ProjectForm(ModelForm):
class Meta:
model = Project
fields = ['title', 'featured_image', 'description', 'demo_link', 'source_link', 'tags']
widgets = {
'tags': forms.CheckboxSelectM... | How to make Django ModelForm filed to update the attrs, so the style can be displayed successfully | CC BY-SA 4.0 | null | 2023-03-03T23:01:38.333 | 2023-03-04T11:38:00.803 | 2023-03-04T11:38:00.803 | 4,151,233 | 19,252,259 | [
"python",
"django"
] |
75,632,568 | 2 | null | 74,460,449 | 0 | null | Got to work for by looking at the Azure Function with HTTP Trigger example file that can be generated using VS Studio
```
var response = httpRequestData.CreateResponse(HttpStatusCode.OK);
response.Headers.Add("Content-Type", "text/html; charset=utf-8");
response.WriteString("<html><body>Hello <b>World</b></body><... | null | CC BY-SA 4.0 | null | 2023-03-03T23:02:07.643 | 2023-03-03T23:13:21.283 | 2023-03-03T23:13:21.283 | 21,328,974 | 21,328,974 | null |
75,632,561 | 2 | null | 75,632,371 | 0 | null | >
The Ansible URI modules incl. `win_get_url` do not have SFTP support since that transports over SSH.
>
Someone would need to implement the protocol support in question.
>
Not an official or community one, but a Custom Module [ftp.py](https://github.com/melmorabity/ansible-ftp/blob/master/ftp.py). However, [accordi... | null | CC BY-SA 4.0 | null | 2023-03-03T23:00:44.497 | 2023-03-04T00:01:50.720 | 2023-03-04T00:01:50.720 | 6,771,046 | 6,771,046 | null |
75,632,564 | 1 | null | null | 2 | 48 | I have a crash dump for a C++ app that reports an access violation on what seems to be a valid address.
The code is relatively simple:
```
#define BIG_BUFFER_SIZE 2048
const size_t in_buf_size{ BIG_BUFFER_SIZE };
class CDeamon : public CSocketNotify
{
char in_buf[in_buf_size];
...
```
```
int ... | What else should I check when I get an Access Violation for an address that seems to be valid? | CC BY-SA 4.0 | null | 2023-03-03T23:01:24.257 | 2023-03-04T00:10:06.747 | 2023-03-04T00:10:06.747 | 65,863 | 5,978,154 | [
"c++",
"access-violation",
"crash-dumps"
] |
75,632,572 | 2 | null | 75,631,974 | 0 | null | The usual way to access the value of a dropdown is through the OnValueChanged event.
This may be of use:
[https://docs.unity3d.com/2023.1/Documentation/Manual/script-Dropdown.html](https://docs.unity3d.com/2023.1/Documentation/Manual/script-Dropdown.html)
Also the script should be attached directly to the dropdown.
| null | CC BY-SA 4.0 | null | 2023-03-03T23:03:38.907 | 2023-03-03T23:25:10.423 | 2023-03-03T23:25:10.423 | 1,508,627 | 1,508,627 | null |
75,632,571 | 2 | null | 75,631,294 | 0 | null | Here are a couple of old knowledge base articles that provide some internal information on how neo4j uses:
- [memory](https://neo4j.com/developer/kb/understanding-memory-consumption/)[this](https://neo4j.com/docs/operations-manual/current/performance/memory-configuration/)- [storage](https://neo4j.com/developer/kb/unde... | null | CC BY-SA 4.0 | null | 2023-03-03T23:02:52.493 | 2023-03-03T23:11:20.880 | 2023-03-03T23:11:20.880 | 974,731 | 974,731 | null |
75,632,570 | 1 | null | null | -1 | 39 | I'm working on a project for my employer. It's a shop site based on asp.net core mvc. I'm going to leave AboutUs section empty, so he can add some content later. I defined a model with all the sections needed to be filled by the employer; including title, contact us in footer and about us. About us is actually is a str... | How to add line break after every nth dot in string? | CC BY-SA 4.0 | null | 2023-03-03T23:02:45.663 | 2023-03-03T23:02:45.663 | null | null | 21,285,546 | [
"c#",
"asp.net-mvc",
"string",
"razor-pages"
] |
75,632,563 | 1 | null | null | 0 | 26 |
I am trying to print out ID,NAME on jsp file.
It seems I can safely import this data.
```
@GetMapping("/emp")
public String showEmp(Model model) {
ArrayList<SDTO> students = sdao.show2();
for(int i=0;i<students.size();i++) {
System.out.println(students.get(i).name);
}
... | error occurred when I try to print out ArrayList<DTO> in JSP file | CC BY-SA 4.0 | null | 2023-03-03T23:01:20.357 | 2023-03-03T23:31:35.767 | 2023-03-03T23:31:35.767 | 21,328,831 | 21,328,831 | [
"oracle",
"jsp",
"mybatis",
"el"
] |
75,632,575 | 1 | null | null | -1 | 12 | I have a project using NextJs is content a 10 pages. I am used to reducer to manage the state .Right now reducer cover all the pages I passed it IND _app. J's her I'm facing some problem the home, about and contact page consume data from reducer, but I don't want this.
My goal I want to exclude those pages from the ... | How i can use reducer to wrap some pages in nextjs | CC BY-SA 4.0 | null | 2023-03-03T23:04:16.983 | 2023-03-03T23:04:16.983 | null | null | 15,586,903 | [
"javascript",
"node.js",
"reactjs",
"next.js",
"reduce"
] |
75,632,574 | 1 | null | null | 0 | 10 | I've spent the better half of my afternoon trying to figure out how to allow apache2 on `Ubuntu 20.04` to `create, write, read files`.
I've `tried:`
`changing ownership`
`changing access`
`changing permissions`
`i've tried re-installing apache2` $ `PHP`
`I've tried adding groups`
`plus much more`
There should be a way ... | Apache2 File Read & Write Permission on Ubuntu | CC BY-SA 4.0 | null | 2023-03-03T23:04:10.860 | 2023-03-04T05:05:51.480 | 2023-03-04T05:05:51.480 | 4,257,757 | 4,257,757 | [
"apache2",
"ubuntu-20.04"
] |
75,632,573 | 1 | null | null | 0 | 29 | Environment: RStudio 2022.12.0+353, Ubuntu 22.04.2 LTS
I am writing a scientific manuscript using Quarto/RStudio. I just installed the [section-bibliographies filter](https://github.com/pandoc-ext/section-bibliographies) as an extension using `quarto install extension pandoc-ext/section-bibliographies` which concluded ... | Quarto extension installed but not found during render | CC BY-SA 4.0 | null | 2023-03-03T23:04:01.150 | 2023-03-04T18:09:13.187 | null | null | 4,476,230 | [
"r",
"rstudio",
"pandoc",
"quarto"
] |
75,632,545 | 1 | null | null | 0 | 14 | I've been having a problem with a C program that works with a binary file, by passing it's contents to a linked list. When the file is empty, I just create the linked list and manipulate it in the program, that mostly works fine (debugging the solutions as we speak). And when I am ready to leave the program, it moves t... | Passing a Binary File to a Linked List, why does it create an extra node?? (C) | CC BY-SA 4.0 | null | 2023-03-03T22:57:22.297 | 2023-03-03T22:57:22.297 | null | null | 9,615,724 | [
"c",
"linked-list",
"binaryfiles",
"singly-linked-list"
] |
75,632,569 | 1 | null | null | 0 | 19 | I actually have two original datasets (each one for a departure that are related to each one in a specific way , but it's not important to know how exactly) , but these 2 datasets contain some outliers in the column 'value' that i deleted and which led to the creation of 2 new datasets filtered. My main objective is to... | Constrained Imputation | CC BY-SA 4.0 | null | 2023-03-03T23:02:44.450 | 2023-03-03T23:02:44.450 | null | null | 20,034,996 | [
"python",
"dataframe",
"knn",
"imputation",
"objective-function"
] |
75,632,577 | 2 | null | 75,632,279 | 1 | null | `npm` and `node` are related but will have different version numbers. You can find out your Node version from running `node -v` in your terminal.
From searching [previous releases](https://nodejs.org/en/download/releases/) I found that npm 6.14.13 is associated with Node 14
The Vue quick-start guide under pre-requisit... | null | CC BY-SA 4.0 | null | 2023-03-03T23:04:50.277 | 2023-03-03T23:04:50.277 | null | null | 6,225,326 | null |
75,632,581 | 2 | null | 75,630,412 | 0 | null | I've tried to call the SP from DBeaver - 553s. Then I've recompiled this SP - EXEC sp_recompile and magic, DBeaver runs my SP under 800ms! Then I've tried old report with SP and it runs faster then report with standalone query.
I've early created 3 indexes for the tables which are used in this SP. Before index creation... | null | CC BY-SA 4.0 | null | 2023-03-03T23:05:58.337 | 2023-03-03T23:05:58.337 | null | null | 2,750,649 | null |
75,632,580 | 2 | null | 75,631,303 | 0 | null | Perhaps you are looking for this
```
server <- function(input, output, session) {
my <- reactiveValues()
output$actions_icons <- renderUI({
list_actions[[input$seasons]] %>%
map(~ actionLink(label = .x,
inputId = paste0(.x)))
})
observe({
my$letter <- list_acti... | null | CC BY-SA 4.0 | null | 2023-03-03T23:05:30.387 | 2023-03-03T23:05:30.387 | null | null | 13,333,279 | null |
75,632,576 | 2 | null | 43,232,740 | 2 | null | Here is a simple parser i made in case you don't wanna inject a library and have a simple enough use case:
```
public class CommandLineParser
{
private readonly List<string> _args;
public CommandLineParser(string[] args)
{
_args = args.ToList();
}
public string?... | null | CC BY-SA 4.0 | null | 2023-03-03T23:04:34.077 | 2023-03-03T23:04:34.077 | null | null | 1,975,259 | null |
75,632,588 | 1 | null | null | 0 | 18 | I want to auto increment an ID in my database which in string datatype,(using hibernate)
for an example ----------- ID0001 this should auto increment to ID0002
can you give me a solution for this matter please.
I tried @GeneratedValue annotation but it gives me an exception.(btw I'm using MySQL database)
| Auto increment a string type id using hibernate | CC BY-SA 4.0 | null | 2023-03-03T23:07:48.497 | 2023-03-03T23:07:48.497 | null | null | 18,697,663 | [
"java",
"mysql",
"hibernate"
] |
75,632,582 | 2 | null | 75,632,323 | 0 | null | What do you get in return?
For example, response script set two cookies:
```
<?php
http_response_code(200);
setcookie("CookName1", 1, time() + 60); // Set one;
setcookie("CookName2", 2, time() + 60); // Set two;
echo "All done";
```
Request script is:
```
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http... | null | CC BY-SA 4.0 | null | 2023-03-03T23:06:40.397 | 2023-03-03T23:06:40.397 | null | null | 21,205,257 | null |
75,632,579 | 1 | null | null | 0 | 7 | I have a Blazor Server Hybrid app in .Net 7. I have my .razor componets built in a razor class library and I have two projects, one for web and one for Blazor MAUI. The Blazor MAUI app is pushing a build to my phone which is running Android. The app has a download image button, which takes a blob from a SQL table a... | Blazor Server Hybrid app download file to android does not work - using BlazorDownloadFile | CC BY-SA 4.0 | null | 2023-03-03T23:05:27.407 | 2023-03-04T22:42:23.053 | 2023-03-04T22:42:23.053 | 13,714,356 | 13,714,356 | [
"android",
".net",
"blazor",
"maui"
] |
75,632,584 | 2 | null | 75,632,001 | 1 | null | Other people are telling what the situation is, for unordered collections, but there are no type-safe guarantees regardless of the orderliness of the sequence. It just happens that everybody writes things* in a way that preserves order coming from the [iterator](https://developer.apple.com/documentation/swift/iteratorp... | null | CC BY-SA 4.0 | null | 2023-03-03T23:07:05.817 | 2023-03-04T14:55:43.130 | 2023-03-04T14:55:43.130 | 652,038 | 652,038 | null |
75,632,586 | 2 | null | 75,632,049 | 1 | null | > Updated answer
Here's my slightly modified version of your page. If this is a Blazor Page then what is all the header stuff?
It works as I believe it's supposed to:
```
@page "/"
@using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage;
@inject ProtectedLocalStorage storage
<div>
<button @onclick=... | null | CC BY-SA 4.0 | null | 2023-03-03T23:07:42.307 | 2023-03-04T09:55:01.687 | 2023-03-04T09:55:01.687 | 13,065,781 | 13,065,781 | null |
75,632,583 | 1 | null | null | 0 | 12 | In PowerShell, I am trying to use Microsoft.Build.Evaluation.Project to query C++ and C# projects with VS2022.
This was working with Visual Studio 2017.
I created a new console app "newproj" which is the Hello World example included with VS.
These all result in "Illegal characters in path.":
`$project31 = new-object Mi... | PowerShell: Microsoft.Build.Evaluation.Project ctor fails with "Illegal characters in path." | CC BY-SA 4.0 | null | 2023-03-03T23:07:02.767 | 2023-03-03T23:10:29.727 | 2023-03-03T23:10:29.727 | 21,328,791 | 21,328,791 | [
".net",
"powershell",
"assembly-binding-redirect"
] |
75,632,591 | 1 | null | null | 0 | 19 | I am using `permission_handler` to get permission for all pictures in the user's gallery and I want to restrict using the app if the user decides to give permission only to some, but not all pictures (it is possible on ios). How can I check if permission was given for all photos?
| Check if permission was granted for all pictures in the gallery in flutter | CC BY-SA 4.0 | null | 2023-03-03T23:08:38.170 | 2023-03-03T23:08:38.170 | null | null | 10,938,942 | [
"flutter",
"dart",
"permissions"
] |
75,632,594 | 1 | null | null | 0 | 8 | I have started watching a tutorial by Alvin Blox about making a hatching system. At the start he connects the pet using Weld Constraints. Is that still necessary to do? If it is, does it still show lines? And if it does, does it work with MeshParts? Because a few of the parts I am using are MeshParts, including the mai... | Do WeldConstraints still work with MeshParts and do they still show lines when pressing alt/option? | CC BY-SA 4.0 | null | 2023-03-03T23:09:36.047 | 2023-03-03T23:30:46.990 | null | null | 16,958,775 | [
"game-development",
"roblox",
"roblox-studio"
] |
75,632,587 | 2 | null | 75,631,074 | 0 | null | Instead of:
```
chrome_options.add_argument("--headless")
```
try:
```
chrome_options.add_argument("--headless=new")
```
---
## Note
The prerequisite to use Native Headless mode i.e. `--headless=new` which is now officially called the mode are as follows:
- [Chromium v109.0.5400.0](https://github.com/chromium/... | null | CC BY-SA 4.0 | null | 2023-03-03T23:07:46.113 | 2023-03-03T23:07:46.113 | null | null | 7,429,447 | null |
75,632,585 | 1 | null | null | 0 | 17 | I use a platform called Dubsado as a CRM. They allow you to add custom HTML (including <script> tags) to their forms, but I cannot get this particular script to work, and hoping you all can help!
The issue seems simple: taking the selected value from a dropdown box and writing it to a text input field. In fact, I've su... | Updating Input Field Value from Dropdown Selection with Javascript (in Dubsado CRM Form) | CC BY-SA 4.0 | null | 2023-03-03T23:07:29.110 | 2023-03-04T03:55:56.393 | 2023-03-04T03:55:56.393 | 11,107,541 | 21,328,888 | [
"javascript",
"html",
"dom"
] |
75,632,593 | 2 | null | 75,632,401 | -1 | null | You can simply wrap your text content in an additional div:
```
#box {
display: flex;
align-items: center;
width: 950px;
margin: auto;
margin-top: 30px;
text-align: center; /* center the inner text */
}
#box p {
margin-right: 1em;
}
```
```
<div id="box">
<div>
<h3>lorem ipsum</h3>
<p>
Lo... | null | CC BY-SA 4.0 | null | 2023-03-03T23:09:30.333 | 2023-03-03T23:09:30.333 | null | null | 15,359,157 | null |
75,632,599 | 2 | null | 75,629,488 | 0 | null | The key idea with using mocks to test is that you should never mock what is being tested, only other methods or classes that are used incidentally. In this case, the `createFromDtos` method should not be mocked, but the `createFrom` method that it uses can be.
For example:
```
import org.junit.Test;
import org.junit.ru... | null | CC BY-SA 4.0 | null | 2023-03-03T23:10:57.130 | 2023-03-03T23:10:57.130 | null | null | 29,470 | null |
75,632,592 | 2 | null | 75,630,861 | 0 | null | To get the counts you can `textjoin` the name, students and place columns for each row. Let say the input data you've provided starts in column `A` row `1`, the formula would look like this:
```
=TEXTJOIN("_",, A2:C2)
```
You should get this `Iwin_John_London` in cell where you put the function. Lets say we put it in ... | null | CC BY-SA 4.0 | null | 2023-03-03T23:08:42.990 | 2023-03-03T23:08:42.990 | null | null | 11,286,032 | null |
75,632,595 | 2 | null | 75,632,355 | 0 | null | When call `$formatter->parse($formatter->format($now))`, the parse method is interpreting the week year value as the year value, resulting in a different timestamp value than the DateTime object's timestamp.
To get consistent output, you can use lowercase `yyyy` instead of uppercase `YYYY` in `IntlDateFormatter`.
```
$... | null | CC BY-SA 4.0 | null | 2023-03-03T23:09:54.347 | 2023-03-04T00:32:50.453 | 2023-03-04T00:32:50.453 | 389,985 | 389,985 | null |
75,632,597 | 1 | null | null | 0 | 25 | I have a search input feature that I would like to be invoked when the user presses enter or when a debounce timeout has elapsed. Basically I want to combine these two paths into a single RxJS observable:
This executes the search on enter:
```
<input [formControl]="searchInput" (keydown.enter)="search()">
```
This exe... | Angular RxJS keyboard input emit on enter or debounce time | CC BY-SA 4.0 | null | 2023-03-03T23:10:13.300 | 2023-03-03T23:29:31.507 | null | null | 3,586,594 | [
"angular",
"rxjs",
"angular-forms"
] |
75,632,600 | 2 | null | 75,628,230 | 0 | null | You basically need a double for loop, which you need to flatten first before the use:
```
locals {
disk_vm_flat = merge([
for vm, vm_vals in var.vm_template: {
for disk, disk_vals in var.disk_template:
"${vm_vals.vm_name}-${disk_vals.managed_disk_name}" => {
vm_name = vm
man... | null | CC BY-SA 4.0 | null | 2023-03-03T23:11:01.737 | 2023-03-03T23:11:01.737 | null | null | 248,823 | null |
75,632,596 | 1 | null | null | 0 | 25 | I have this Python code:
```
def upload_to_gcs(bucket_name, local_file_path, gcs_file_name):
"""
Uploads local files to Google Cloud Storage (GCS).
:param bucket_name: string
:param local_file_path: string
:param gcs_file_name: string
:return: None
"""
client = storage.Client()
buck... | GCP Billing error when Billing is enabled | CC BY-SA 4.0 | null | 2023-03-03T23:10:10.180 | 2023-03-04T08:24:29.780 | 2023-03-04T08:14:58.330 | 3,861,965 | 3,861,965 | [
"python",
"google-cloud-platform",
"google-cloud-billing"
] |
75,632,601 | 2 | null | 75,628,718 | 0 | null | ```
#!/usr/bin/env bash
total_cnt=$(wc -l < Checkmarx_Json_Data.txt)
{
printf {\\n
while IFS= read -r line; do
col1=${line%%:*}
col2=${line#*: }
if ((++line_cnt < total_cnt)); then
printf ' "%s" : "%s",\n' "$col1" "$col2"
else
printf ' "%s" : "%s"\n' "$col1" "$col2"
fi
done < Checkmarx_Json_Data.t... | null | CC BY-SA 4.0 | null | 2023-03-03T23:11:05.083 | 2023-03-04T00:22:00.153 | 2023-03-04T00:22:00.153 | 4,452,265 | 4,452,265 | null |
75,632,605 | 1 | null | null | -1 | 11 | Here are some example of what I want to acheive, of course without textures and complications, I just want to be able to create a map, orthographic camera, and being able to drag and drop objects in react native
I tried react-three/fiber, which worked, but then I needed a drag capability, so the package suggested Orbit... | How can we make a Drag and snap 3D map in React Native | CC BY-SA 4.0 | null | 2023-03-03T23:11:41.153 | 2023-03-03T23:11:41.153 | null | null | 13,603,103 | [
"react-native",
"three.js",
"react-three-fiber",
"react-three-drei"
] |
75,632,598 | 2 | null | 75,631,040 | 1 | null | > My solution is to introduce a variable in CMAKE "build_tests" and if it is ON, then symbols are not hidden.
The disadvantage of this is that for a single generated buildsystem, you basically have to choose between what you'd like to see for release (with symobls visible on an as-needed basis) and what is usable to yo... | null | CC BY-SA 4.0 | null | 2023-03-03T23:10:42.667 | 2023-03-04T16:49:02.910 | 2023-03-04T16:49:02.910 | 11,107,541 | 11,107,541 | null |
75,632,603 | 1 | null | null | 0 | 19 | I would like to watch some fields in my component, but would like to make sure I pass in a constant as an array, so that I make sure the order of fields is kept the same through the app, so that I know which fields have been updated.
I have tried to do it very simply like this:
```
export enum FieldsToWatch {
"firs... | React hook form - passing an array of strings as constant to useWatch not working | CC BY-SA 4.0 | null | 2023-03-03T23:11:38.867 | 2023-03-03T23:44:14.873 | 2023-03-03T23:37:01.350 | 7,071,069 | 7,071,069 | [
"reactjs",
"typescript",
"react-hook-form"
] |
75,632,606 | 1 | null | null | 0 | 10 | i want to be able to get pitch from microphone in a way like
```
import <moulule>
while True:
print(str(getMicPitch()))
```
and that would print the pitch of the microphone. also, volume detection would also be fantastic.
| How do i get microphone pitch as an integer easily? | CC BY-SA 4.0 | null | 2023-03-03T23:11:44.960 | 2023-03-04T00:33:46.753 | null | null | 18,060,878 | [
"python-3.x",
"audio",
"microphone"
] |
75,632,607 | 1 | null | null | 0 | 4 | The story is I'm trying to click on a button but everything I found is the class name. Here's the code:
```
<div class="zm-box zm-actions playlist-actions"><button class="zm-btn action-play button" tabindex="0"><i class="icon action-play ic-svg-play-circle"></i></button></div>
```
I tried to identify the button by ... | How to click on a button in Python Selenium without name and id in <i> tag? | CC BY-SA 4.0 | null | 2023-03-03T23:11:58.510 | 2023-03-03T23:11:58.510 | null | null | 19,696,274 | [
"python-3.x",
"selenium-chromedriver"
] |
75,632,602 | 1 | null | null | 0 | 19 | Can any one help me, I am trying to bring the variant option data from shopify using appscript, but I know I am making a mistake on the authorization part. The error is:
Exception: Login information disallowed: https://96023a859a51c154e170b62521df8724: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@unisus-international-school.m... | Appscript to bring Variant Data using Shopify API | CC BY-SA 4.0 | null | 2023-03-03T23:11:09.433 | 2023-03-03T23:11:09.433 | null | null | 17,071,566 | [
"javascript",
"google-apps-script",
"google-sheets",
"shopify"
] |
75,632,590 | 1 | null | null | 0 | 17 | I have two classes a `List` and a `DerivedList` where I want the `DerivedList` class to be able to access the private members of the `List` class. According to [this answer](https://stackoverflow.com/a/18944468) I can do this by making the `DerivedList` a friend of the `List` class.
I think my problem occurs because bo... | Accessing the private members of a derived template class | CC BY-SA 4.0 | null | 2023-03-03T23:08:31.353 | 2023-03-03T23:08:31.353 | null | null | 9,253,840 | [
"c++",
"c++-templates"
] |
75,632,589 | 2 | null | 75,631,715 | 4 | null | This is a curious interaction between the built-in `list` type's comparison, and Numpy's comparison - which is implemented , not just arrays.
A truly minimal example:
```
>>> import numpy as np
>>> a = np.int64(1)
>>> [a] == [[a, a]]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: T... | null | CC BY-SA 4.0 | null | 2023-03-03T23:08:01.790 | 2023-03-03T23:17:52.263 | 2023-03-03T23:17:52.263 | 523,612 | 523,612 | null |
75,632,604 | 2 | null | 75,622,166 | 0 | null | I don't know if this is the answer to your question and it's been several years since I used indexedDB; but I looked back at some of my code that worked in the past and notice that the assignment to `db` is different than in your code. The `onupgradeneeded` event fires before the `onsuccess` when you first open a datab... | null | CC BY-SA 4.0 | null | 2023-03-03T23:11:40.790 | 2023-03-03T23:11:40.790 | null | null | 9,852,762 | null |
75,632,609 | 1 | null | null | -2 | 22 | [](https://i.stack.imgur.com/8bKxJ.png)
Is there python library which help in finding most occuring value in whole matrix ? Nulls should be ignored .
eg output of snapshot should be Delhi .
If there are more than one then it should return all most occurring values .
| Find the most occuring value in whole matrix | CC BY-SA 4.0 | null | 2023-03-03T23:12:19.043 | 2023-03-03T23:12:19.043 | null | null | 8,713,442 | [
"python-3.x",
"dataframe",
"numpy",
"apache-spark",
"data-science"
] |