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,628,038 | 2 | null | 75,625,084 | 0 | null | There are a number of efficiencies you can make:
- - -
The other answer also has some efficiency issues:
- - `LEAD`
```
SELECT
MIN(h.Value) AS MIN,
MAX(h.Value) AS MAX,
AVG(h.Value) AS AVERAGE,
STDEV(h.Value) AS STD_DEV,
MIN(CASE WHEN h.rn = 1 THEN h.wwUnit END) AS wwUnit,
MIN(CASE WHEN h.rn = 1 THEN h.D... | null | CC BY-SA 4.0 | null | 2023-03-03T14:00:37.630 | 2023-03-03T14:00:37.630 | null | null | 14,868,997 | null |
75,628,039 | 1 | null | null | 0 | 7 | I'm trying to run a bash script with `maven-antrun-plugin`:
```
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>generate-resources</phase>
<configuration>
<tasks>
<exec
... | CreateProcess error=193, %1 is not a valid Win32 application in maven | CC BY-SA 4.0 | null | 2023-03-03T14:00:51.177 | 2023-03-03T14:00:51.177 | null | null | 19,460,147 | [
"bash",
"maven"
] |
75,628,040 | 1 | null | null | 0 | 11 | I'm creating a detail display for the consumer, and I want them to select on an object to view more information like a photo and price, among other things. However, the image remains static. Is there any way for me to obtain a different image for a different merchandise using the img tag? I attempted using the express ... | Is there a way to use only 1 tag img in hbs to access different picture? | CC BY-SA 4.0 | null | 2023-03-03T14:01:05.893 | 2023-03-03T14:01:05.893 | null | null | 18,329,020 | [
"html",
"node.js",
"hbs"
] |
75,628,042 | 1 | null | null | 0 | 7 | When I try to distribute Parcel file, I get errors like below
Error when distributing to serverxxx.local [Errno 20] Not a directory u'opt/cloudera/parcels/GCSCONNECTOR-3.0.0xxx.sha/meta/parcel.json'
and
Error when distributing to serverxxx.local [Errno 20] Not a directory u'opt/cloudera/parcels/GCSCONNECTOR-3.0.0xxx.pa... | Error when distributing Cloudera Parcel file for GCS connector | CC BY-SA 4.0 | null | 2023-03-03T14:01:15.837 | 2023-03-03T14:01:15.837 | null | null | 6,027,446 | [
"cloudera",
"parcel",
"gcs"
] |
75,628,043 | 1 | null | null | 0 | 9 | it seems to be unable trying to put a member role. My bot role is admin, my bot has admin priviledges (also intent added yesterday) and I can call all GET calls to see members and so on via PostMan. If I try PUT option to assign a user a role, I use something like
```
https://discord.com/api/guilds/951513055295070218/m... | how can I add a role to a guild member via Discord API (postman)? | CC BY-SA 4.0 | null | 2023-03-03T14:01:18.767 | 2023-03-03T14:01:18.767 | null | null | 5,468,144 | [
"discord"
] |
75,628,044 | 2 | null | 75,627,581 | 1 | null | I think its better to use `position: fixed`. If you go to the far right, the "blob" expands the site and you can scroll vertical: [](https://i.stack.imgur.com/stpbv.png)
```
const blob = document.getElementById("blob");
const letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
window.onpointermove = event => {
const { clientX,... | null | CC BY-SA 4.0 | null | 2023-03-03T14:01:20.513 | 2023-03-03T14:01:20.513 | null | null | 18,354,300 | null |
75,628,046 | 2 | null | 75,627,293 | 0 | null | ```
message_user_send = {}
name_of_url = {}
url_user_send = {}
############################
@bot.message_handler(commands=['aaa'])
def send(message):
msg1 = bot.send_message(message.chat.id, 'Введи текст который нужно отправить')
bot.register_next_step_handler(msg1, name_of_link)
def name_of_link(message):
... | null | CC BY-SA 4.0 | null | 2023-03-03T14:01:24.003 | 2023-03-03T14:01:24.003 | null | null | 16,992,726 | null |
75,628,047 | 1 | null | null | 0 | 31 | I have an Angular 15 application with a component, called FatherComponent, that receives via API a string of HTML that gets injected on its template using innerHTML:
```
<div [innerHTML]="htmlContent"></div>
```
My problem is that the received HTML content also has some Angular tags from another of my components, SonC... | Render Angular tags in injected HTML | CC BY-SA 4.0 | null | 2023-03-03T14:01:32.263 | 2023-03-03T15:53:29.747 | null | null | 921,329 | [
"angular"
] |
75,628,048 | 2 | null | 75,627,001 | -1 | null | Your code is already very simplified, it is impossible to come out with something worth the difference.
Here is how I would design that code:
```
if isinstance(slack_conn_ids, SlackConnection) or isinstance(slack_conn_ids, set):
try:
slack_conn_ids = {slack_conn_ids}
except TypeError:
pass
else:... | null | CC BY-SA 4.0 | null | 2023-03-03T14:01:36.067 | 2023-03-03T14:01:36.067 | null | null | 20,959,773 | null |
75,628,049 | 2 | null | 75,627,523 | 1 | null | You can try this
```
val finalList = (transactions + transactions.map {
transaction(
it.ReceiverName,
it.SenderName,
-1 * it.Amount
)
}).groupBy { it.SenderName to it.ReceiverName }.map { entity ->
NewObject(entity.key.first, entity.key.second, entity.value.sumOf { it.Amount })
}
pr... | null | CC BY-SA 4.0 | null | 2023-03-03T14:01:41.357 | 2023-03-03T14:01:41.357 | null | null | 1,514,861 | null |
75,628,050 | 2 | null | 75,626,974 | 0 | null |
# TL;DR
You will need to if you don't have the `config.json` and the model card doesn't have any documentation
After some guessing, possibly it's this:
```
from u2net import U2NET
model = U2NET()
model.load_state_dict(torch.load('full_weights.pth', map_location=torch.device('cpu')))
```
---
# In Long
Looki... | null | CC BY-SA 4.0 | null | 2023-03-03T14:01:44.513 | 2023-03-03T14:01:44.513 | null | null | 610,569 | null |
75,628,051 | 2 | null | 75,627,954 | 1 | null | Try using `.cornerRadius` instead of `.clipShape`
```
AsyncImage(url: URL(string:imageUrl)) { image in
image
.resizable()
.scaledToFit()
.frame(height: UIScreen.main.bounds.width)
.cornerRadius(50)
}
```
I hope this helps :)
| null | CC BY-SA 4.0 | null | 2023-03-03T14:01:46.940 | 2023-03-03T14:01:46.940 | null | null | 15,963,676 | null |
75,628,052 | 1 | null | null | 0 | 13 | `python -m webbrowser http://example.com/`
This script works in command line. It opens the url with default browser.
I'm creating a makefile to run some docker commands and after the containers are up, open a list of urls.
```
dev:
docker compose up -d
python -m webbrowser http://localhost:8001/
python -m ... | python -m xxx script works in command line but not in .sh file? | CC BY-SA 4.0 | null | 2023-03-03T14:02:08.233 | 2023-03-03T14:02:08.233 | null | null | 4,971,866 | [
"bash",
"makefile"
] |
75,628,054 | 1 | null | null | -1 | 35 | I have a table which contains data for consumption of electricity on different sites. The data is not regular in time. Which mean that sometimes let's say the data is for one site on a particular day and the next record for the same site would be for another day, not necessarily one month after. It is the column DATE_D... | How to compare data with data approximately one month before? | CC BY-SA 4.0 | null | 2023-03-03T14:02:15.060 | 2023-03-03T16:02:38.803 | 2023-03-03T14:14:38.177 | 880,990 | 10,385,003 | [
"sql",
"oracle",
"date"
] |
75,628,056 | 1 | null | null | 0 | 11 | In a depot with a folder structure like:
```
depot
subFolder1
subSubFolder1
subSubFolder2
subfolder2
```
Is it possible to map just `//depot/subFolder1/...` to the workspace root on the local filesystem, so that it will contain directly `subSubFolder1` and `subSubFolder2`?
I am trying to specif... | Is it possible to map a Perforce depot subpath to the workspace root folder? | CC BY-SA 4.0 | null | 2023-03-03T14:02:23.483 | 2023-03-04T14:33:48.047 | 2023-03-03T14:07:23.670 | 17,685,806 | 17,685,806 | [
"version-control",
"perforce",
"perforce-client-spec",
"perforce-stream"
] |
75,628,057 | 1 | null | null | 0 | 27 | I'm trying to write to a csv file and to do so I have to pass some values stored in different variables to the writerow method. But when I try to do so i always get this error:
> 'SyntaxError: closing parenthesis ')' does not match opening parenthesis '{''.
I've already tried using the old fashion method of "%s" but th... | Passing fstrings as parameters in Python | CC BY-SA 4.0 | null | 2023-03-03T14:02:25.297 | 2023-03-03T15:37:34.163 | 2023-03-03T14:54:25.397 | 21,312,929 | 21,312,929 | [
"python",
"csv",
"export-to-csv",
"file-writing"
] |
75,628,058 | 1 | null | null | 0 | 13 | I'd like to put together an extension which can switch between different options for VS options. For example, switching between XAML attribute spacing preferences.
I've tried looking through the docs for accessing options, as well as using the writable settings store, but can't seem to find a way to access the properti... | How to access Visual Studio options from an extension? | CC BY-SA 4.0 | null | 2023-03-03T14:02:32.483 | 2023-03-03T16:24:46.627 | 2023-03-03T16:24:46.627 | 11,757,910 | 11,757,910 | [
"visual-studio",
"vsix"
] |
75,628,059 | 1 | null | null | 0 | 7 | i am trying to install certbot but i am getting these errors
```
[ec2-user@ip-myip ~]$ sudo yum update
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Could not retrieve mirrorlist https://amazonlinux-2-repos-eu-south-1.s3.dualstack.eu-south-1.amazonaws.com/2/core/latest/x86_64/mirror.list error ... | "error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none" | CC BY-SA 4.0 | null | 2023-03-03T14:02:40.043 | 2023-03-03T14:02:40.043 | null | null | 19,179,045 | [
"linux",
"curl",
"yum"
] |
75,628,061 | 2 | null | 75,627,502 | 0 | null | The [documentation for the ODI SDK](https://docs.oracle.com/en/middleware/fusion-middleware/data-integrator/12.2.1.4/odija/index.html) provides ways to [export](https://docs.oracle.com/en/middleware/fusion-middleware/data-integrator/12.2.1.4/odija/oracle/odi/impexp/support/ExportServiceImpl.html) and [import](https://d... | null | CC BY-SA 4.0 | null | 2023-03-03T14:02:52.433 | 2023-03-03T14:02:52.433 | null | null | 3,548,287 | null |
75,628,062 | 2 | null | 75,627,552 | 1 | null | The function groupByAge is gonna do exactly what you need.
```
var data = [
{
name: "Mike",
age: 10
},
{
name: "Matt",
age: 10
},
{
name: "Adam",
age: 22
},
{
name: "Nancy",
age: 15
},
{
name: "Jenny",
age: 22
},
];
function groupByAge(data) {
const so... | null | CC BY-SA 4.0 | null | 2023-03-03T14:02:54.717 | 2023-03-03T14:02:54.717 | null | null | 19,557,600 | null |
75,628,063 | 1 | 75,628,435 | null | 2 | 43 | When I run the first code it with "\n" at the end of every print statement it gives me the expected output which is in case of `num` == `35`
```
The generated sequence:
35
106
53
160...
```
code to generate collatz sequence:
```
#include<stdlib.h>
#include<stdio.h>
#include<unistd.h>
#include<sys/wait.h>
#include<sys/... | Wierd terminal display glitch in c, Ubuntu | CC BY-SA 4.0 | null | 2023-03-03T14:02:56.353 | 2023-03-03T14:39:12.890 | 2023-03-03T14:18:53.437 | 645,128 | 18,911,813 | [
"c",
"ubuntu",
"virtual-machine"
] |
75,628,064 | 1 | 75,628,697 | null | 2 | 22 | My admin user model does not update new record when I register using UserCreationForm.
[Access the github code](https://github.com/Abunawest2/My-blog-site)
in the views I have imported Usercreationform has shown below and I did all the views coding. I do not know where I went wrong. I also rendered the form correctly i... | Admin User model | CC BY-SA 4.0 | null | 2023-03-03T14:02:58.890 | 2023-03-03T17:13:12.073 | 2023-03-03T17:13:12.073 | 17,562,044 | 21,307,100 | [
"python",
"django",
"django-models",
"django-forms",
"django-templates"
] |
75,628,065 | 2 | null | 75,619,371 | 0 | null | `-match` matches a regex pattern defined on the Right-Hand-Side to whatever string is given on the Left-Hand-Side, not the other way around.
So if you match
```
$path = "C:\Users\\AppData\Local\Temp\42c950490f3f4643b2432b09b29cf4b7\638133824672932949\ManagementConsoleClient_4.0.0.120\google.O365.SDK.dll"
$path -match '... | null | CC BY-SA 4.0 | null | 2023-03-03T14:03:01.727 | 2023-03-03T16:27:53.577 | 2023-03-03T16:27:53.577 | 9,898,643 | 9,898,643 | null |
75,628,066 | 1 | null | null | -1 | 41 | I get an unexpected exception when I try to parse a LocalDateTime (using JDK 8).
```
DateTimeFormatter DTF = DateTimeFormatter.ofPattern("dd/MM/yyyy hh:mm");
String dateStr = LocalDateTime.now().format(DTF);
// => dateStr = 03/03/2023 01:56
LocalDateTime date = LocalDateTime.parse(dateStr, DTF);
// => throw DateTimeP... | Text '03/03/2023 01:56' could not be parsed: Unable to obtain LocalDateTime from TemporalAccessor | CC BY-SA 4.0 | null | 2023-03-03T14:03:06.900 | 2023-03-04T09:59:35.317 | 2023-03-03T14:20:20.443 | 10,645,780 | 10,645,780 | [
"java",
"java-8",
"date-format",
"java-time"
] |
75,628,067 | 1 | null | null | -1 | 11 | I have a question.
We have a database of company addresses in our industry directory.
How and where can I get their exact location?
I know how to do it manually for each address, but there are about 10K addresses in the database.
Location data will help us a lot, because we will make it available to users and they will... | How do I get a location given an address (~10K addresses )? | CC BY-SA 4.0 | null | 2023-03-03T14:03:08.053 | 2023-03-03T16:31:06.767 | 2023-03-03T16:31:06.767 | 21,326,418 | 21,326,418 | [
"google-maps",
"google-maps-api-3",
"gps",
"location",
"maps"
] |
75,628,068 | 1 | null | null | -2 | 27 | date("10/12/0000") converting incorrect
I have filled my date of birth field ( mm/dd/yyyy) this format. I have convert to date format, its facing issue.
our side date is correct but value is incorrect. How valid correct date field?
I have tried momentum also, same issue faced.
[](https://i.stack.imgur.com/SEaG1.png)
| date("10/12/0000") converting incorrect | CC BY-SA 4.0 | null | 2023-03-03T14:03:13.907 | 2023-03-03T14:03:13.907 | null | null | 8,204,457 | [
"javascript",
"date",
"validation"
] |
75,628,069 | 1 | null | null | 0 | 52 | I am trying to replace only the last occurrence of a substring with another substring. For example for only the last occurrence of `x:y` I want to replace it with `r:w`
Example:
`There {x:y} is a {x:y},u bench` -> `There {x:y} is a {r:w},u bench`
I could only find a parameter in `regex_replace` that would replace the f... | How to replace last occurrence of substring in c++ | CC BY-SA 4.0 | null | 2023-03-03T14:03:22.677 | 2023-03-03T15:02:37.560 | null | null | 8,255,865 | [
"c++",
"regex"
] |
75,628,070 | 1 | null | null | 1 | 14 | I have faced with problem when I changed some code in one .php file and broke some code in other one but I haven't noticed it because VS Code didn't show any errors in my workspace till I opened error causing file myself. Are there any solutions for that? I want configure VS Code so that will scan entire PHP folder for... | PHP & VS Code: inspect entire workspace for warnings, errors and etc | CC BY-SA 4.0 | null | 2023-03-03T14:03:40.230 | 2023-03-03T14:03:40.230 | null | null | 8,241,492 | [
"php",
"visual-studio-code"
] |
75,628,071 | 1 | 75,628,436 | null | 1 | 87 | I'd like to partition an array of sorted integers into contiguous partitions.
The following ruby:
```
[1,2,3,8,9,10,99].slice_when { |x, y| y > x + 1 }.to_a
```
Outputs:
```
[[1, 2, 3], [8, 9, 10], [99]]
```
How can I do this in clojure?
I tried using `partition-by`, but AFAIK it only takes one argument.
| In clojure how to partition an array of sorted integers into contiguous partitions? | CC BY-SA 4.0 | null | 2023-03-03T14:03:40.493 | 2023-03-03T20:56:09.017 | 2023-03-03T15:46:59.947 | 609 | 609 | [
"ruby",
"clojure"
] |
75,628,072 | 2 | null | 75,627,991 | 5 | null | `with` evaluates the expression before the loop starts.
If you want to compute an intermediate value on each iteration, you need to replace it with `for`:
```
(defun some-test (range)
(loop for item = (random 1000)
repeat range
if (evenp item)
collect item))
```
Running `(some-test 5)` then r... | null | CC BY-SA 4.0 | null | 2023-03-03T14:03:49.827 | 2023-03-04T09:35:54.497 | 2023-03-04T09:35:54.497 | 69,545 | 21,313,424 | null |
75,628,073 | 1 | null | null | 0 | 10 | I have hosted a Blazor WebAssembly app in Azure App Service and have set the but the correct environment appsettings do not get returned
[](https://i.stack.imgur.com/52VOL.png)
[](https://i.stack.imgur.com/5s577.png)
I have tried the following solutions in the :
Solution 1:
```
<script>
if (window.location.hostnam... | Blazor WebAssembly hosted in Azure App Service not returning environment appsettings | CC BY-SA 4.0 | null | 2023-03-03T14:03:51.237 | 2023-03-03T14:03:51.237 | null | null | 1,912,756 | [
"azure-web-app-service",
"blazor-webassembly"
] |
75,628,074 | 2 | null | 75,627,749 | 0 | null | Reading the input file repeatedly to align each line with a line number is rather inelegant and inefficient. See also [Counting lines or enumerating line numbers so I can loop over them - why is this an anti-pattern?](https://stackoverflow.com/questions/65538947/counting-lines-or-enumerating-line-numbers-so-i-can-loop-... | null | CC BY-SA 4.0 | null | 2023-03-03T14:03:58.653 | 2023-03-03T14:03:58.653 | null | null | 874,188 | null |
75,628,075 | 1 | null | null | 0 | 11 | I have a flutter app deployed on web that uses PeerDart (which copies the implementation from PeerJs).
I tested video calls from a mobile device to a web browser using different wifi connections and everything works so far.
The problem is that when I switch from wifi to data on my mobile device the video is never strea... | PeerDart disconnects when using mobile data | CC BY-SA 4.0 | null | 2023-03-03T14:04:08.440 | 2023-03-03T16:13:50.757 | 2023-03-03T16:13:50.757 | 8,211,360 | 8,211,360 | [
"android",
"flutter",
"dart",
"peerjs"
] |
75,628,076 | 2 | null | 75,627,832 | 5 | null | You are not checking if `output_num[2+shifting]` exceeds 9 after this line:
```
output_num[2+shifting] += floor((inputDataQuotient + output_num[1+shifting]) / 10);
```
As a simpler example, an input `9909 101` results in an output `9100809` while the correct answer is `1000809`.
This is because the top digit has the v... | null | CC BY-SA 4.0 | null | 2023-03-03T14:04:15.407 | 2023-03-03T14:04:15.407 | null | null | 4,062,354 | null |
75,628,077 | 2 | null | 25,553,787 | 0 | null | Well, you can use flag to set the volume size. And based on that WinRAR will create volumes. Let us see an example:
> winrar.exe a -v100m output.rar "{path_to_large_folder_or_file}"
This command will create volumes of size 100mb. You can use any integer with:
-> bytes, kilobytes, megabytes, gigabytes.
| null | CC BY-SA 4.0 | null | 2023-03-03T14:04:23.113 | 2023-03-03T14:04:23.113 | null | null | 16,470,140 | null |
75,628,078 | 1 | null | null | -1 | 10 | Env:
- - -
Steps to reproduce:
1. Turn on handoff on both devices.
2. Copy any text from Chrome on the iPad.
3. Paste it to any chat in Messenger on iPhone.
4. See the copy-paste progress completed in a pop-up, but no text gets pasted.
5. Paste it to the Notes app on the iPhone - the text gets copied.
Given the 5.,... | Why Messenger on iOS does not work with the Universal Clipboard and how to fix it? | CC BY-SA 4.0 | null | 2023-03-03T14:04:28.320 | 2023-03-03T14:04:28.320 | null | null | 3,010,879 | [
"messenger",
"ipad-3",
"handoff",
"iphone11"
] |
75,628,080 | 2 | null | 73,994,421 | 0 | null | Please try to update your /etc/containerd/config.toml to the next:
```
version = 2
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true
```
| null | CC BY-SA 4.0 | null | 2023-03-03T14:04:43.007 | 2023-03-03T14:04:43.007 | null | null | 21,326,335 | null |
75,628,081 | 1 | null | null | 0 | 30 | So in my MainWindow.xaml.cs I have:
```
private void Button_Click(object sender, RoutedEventArgs e)
{
Page1 Scene1 = new Page1();
MainFrame.Navigate(Scene1);
}
```
And in my Page1.xaml.cs I have:
```
private void Back_Click(object sender, RoutedEventArgs e)
{
... | How to come back to the MainWindow in WPF | CC BY-SA 4.0 | null | 2023-03-03T14:04:46.140 | 2023-03-04T00:12:03.947 | null | null | 21,326,426 | [
"c#",
"wpf"
] |
75,628,082 | 1 | null | null | 0 | 34 | I have a list :
```
[(1, 49, 47), (11, 44, 6), (24, 16, 31), (11, 29, 47), (41, 14, 24), (40, 29, 1), (32, 49, 44), (41, 14, 14), (24, 21, 49), (19, 24, 6)]
```
And a tuple `(7,2,3)` I need to choose a value from this list such that every element in the tuple should be less than or equal to the new value selected acco... | How to get the closest match among three numbers | CC BY-SA 4.0 | null | 2023-03-03T14:04:49.123 | 2023-03-03T14:24:59.797 | null | null | 13,328,195 | [
"python",
"numbers"
] |
75,628,083 | 2 | null | 75,627,150 | 0 | null | > I can use log4net and then store it on the same server the application is running on.
Not only that but many logging libraries enable you to send the telemetry to other destinations than the local server. log4net for example has [an appender](https://www.nuget.org/packages/Microsoft.ApplicationInsights.Log4NetAppende... | null | CC BY-SA 4.0 | null | 2023-03-03T14:04:56.733 | 2023-03-03T15:53:18.327 | 2023-03-03T15:53:18.327 | 932,728 | 932,728 | null |
75,628,084 | 1 | 75,628,772 | null | 0 | 29 | i am using `Firestore` as backend to my app
in my app users could signUp then login in using `Firabese auth`like any app . also they can switch their accounts to another if they have many accounts.
in my app i have many `.get().then((value){....}` like following ..
```
FirebaseFirestore.instance.collection('users')
.li... | How could i cancel any current await .then((value){....} | CC BY-SA 4.0 | null | 2023-03-03T14:04:59.663 | 2023-03-03T15:10:24.107 | null | null | 16,213,673 | [
"flutter",
"google-cloud-firestore"
] |
75,628,085 | 1 | null | null | -8 | 32 | I'm trying to learn go and i am confused with interfaces
I kind of understand it like in Javascript we can have a function as an object's property. So, to achieve this in go, we use interfaces
I saw similar question in stackoverflow and understand it. But curious to know the difference between below methods and which o... | What is the use of interfaces in golang? | CC BY-SA 4.0 | null | 2023-03-03T14:05:00.137 | 2023-03-03T14:22:35.343 | 2023-03-03T14:22:35.343 | 16,038,633 | 16,038,633 | [
"go",
"go-interface"
] |
75,628,086 | 1 | 75,628,285 | null | 1 | 13 | I have a table of the following format:
[](https://i.stack.imgur.com/6TMa2.png)
I need to calculate a "Forward Rate" measure for each row, which = Discount Factor Current Month / Discount Factor Proceeding Month - 1.
I have tried the following measure but it does not work:
```
Forward Rate = SUMX(facYieldCurves,
IFERR... | Calculate a forward rate using measure | CC BY-SA 4.0 | null | 2023-03-03T14:05:01.033 | 2023-03-03T14:25:06.583 | null | null | 13,343,454 | [
"powerbi",
"dax"
] |
75,628,087 | 2 | null | 75,626,715 | 1 | null | If you're working in a notebook, make your plot interactive by adding `%matplotlib widget` at the beginning of the cell.
Then, you don't need to use `Output`, simply update your fig and re-draw it in the event callback function.
```
%matplotlib widget
# [...]
# create plot
fig, ax = plt.subplots()
update_plot(country... | null | CC BY-SA 4.0 | null | 2023-03-03T14:05:10.507 | 2023-03-03T14:05:10.507 | null | null | 11,080,037 | null |
75,628,088 | 2 | null | 75,627,906 | 1 | null | You can use a recursive function to avoid errors
```
/**
* Safely sets a key in an object or throws a predictable error
* @param obj An object
* @param path An Array of strings representing the path
* @param value The new value
*/
function safeUpdateObject(obj, path, value){
if(path.length === 0){
throw new ... | null | CC BY-SA 4.0 | null | 2023-03-03T14:05:20.683 | 2023-03-03T14:05:20.683 | null | null | 5,166,365 | null |
75,628,089 | 2 | null | 75,627,993 | 0 | null | ```
class FooWrapper : public Foo
{
// ...
private:
Foo foo_;
};
```
Well this class `Foo` it also another `Foo`.
Every object of type `FooWrapper` contains two objects of type `Foo`: the base-class subobject and the data member.
Note that since the question was edited, we should still say that every `FooWr... | null | CC BY-SA 4.0 | null | 2023-03-03T14:05:22.520 | 2023-03-03T14:13:16.543 | 2023-03-03T14:13:16.543 | 212,858 | 212,858 | null |
75,628,090 | 1 | null | null | -1 | 15 | how to send a welcome message in the slack app using c#. ex- [image](https://i.stack.imgur.com/ET3FH.png)
Send Welcome message after installing app for the first time user
| Using c# how to send a welcome message in the slack app | CC BY-SA 4.0 | null | 2023-03-03T14:05:24.697 | 2023-03-03T14:05:24.697 | null | null | 21,326,374 | [
"c#",
".net",
"slack",
"slack-api",
"slack-bot"
] |
75,628,091 | 1 | null | null | 0 | 15 | Hi i am getting module missing error
[https://github.com/aws-amplify/amplify-hosting/issues/3319](https://github.com/aws-amplify/amplify-hosting/issues/3319)
the build is getting generated successfully, please do let me know how to solve it.
[](https://i.stack.imgur.com/KI7Pi.png)
| Error Next.js getting 500 error on deploying the project in aws-amplify | CC BY-SA 4.0 | null | 2023-03-03T14:05:28.063 | 2023-03-03T14:05:28.063 | null | null | 2,340,518 | [
"reactjs",
"amazon-web-services",
"web",
"next.js",
"aws-amplify"
] |
75,628,092 | 2 | null | 57,797,459 | 0 | null | If it is of any interest for one of you, here is the code I came up with to add `spdlog` include directory (including nested subdirectories).
It indeed uses `GLOB_RECURSE`, but I could not find a better way.
NB: CMake >= 3.23 needed (for `FILE_SET`).
```
set(Target logger)
add_library(${Target} SHARED logger.cpp)
# fi... | null | CC BY-SA 4.0 | null | 2023-03-03T14:05:33.343 | 2023-03-03T14:05:33.343 | null | null | 7,683,041 | null |
75,628,093 | 2 | null | 75,617,199 | 0 | null | At first, you should flatten the filter list into a single list so that you can pass it to the `__in` lookup, like so:
```
filter_list = [['3aa', '1ss', '2bb'], ['4aa', '5bb'], ['3nn', '9mm', '6cc']]
flat_filtered_list = [item for sublist in filter_list for item in sublist]
result = Table.objects.filter(category__in=f... | null | CC BY-SA 4.0 | null | 2023-03-03T14:06:03.780 | 2023-03-03T14:06:03.780 | null | null | 17,562,044 | null |
75,628,094 | 2 | null | 75,604,172 | 0 | null | Thanx to @Steven recommendations, I googled and found the solution. It's not very good, but as temporary solution it helps and can be updated according to concrete purposes. So basing on [axon forum](https://discuss.axoniq.io/t/getting-xstream-dependency-exception/3634/6) and [this thread](https://stackoverflow.com/que... | null | CC BY-SA 4.0 | null | 2023-03-03T14:06:21.010 | 2023-03-03T14:06:21.010 | null | null | 8,336,836 | null |
75,628,095 | 1 | null | null | 0 | 19 | I have a document schema that looks like this:
```
{
"_id": "8a28d1fc-602b-43ba-a017-105a4fff35b3",
"isDeleted": false,
"user": {
"timestamp": "2023-03-03",
"phone": "+012345678912",
"age": 25,
"gender": "male",
"nationality": "smth",
"universityMajor": "ENGINEERING",
"preferences": {
... | Field not updating in MongoDB using FastAPI | CC BY-SA 4.0 | null | 2023-03-03T14:06:21.810 | 2023-03-03T14:06:21.810 | null | null | 13,349,539 | [
"python",
"mongodb",
"nosql",
"fastapi"
] |
75,628,097 | 1 | 75,628,334 | null | 0 | 26 | I need to count the total number of swaps needed to turn an array [1 to N] into maxheap. My code below outputs the correct answers but I was wondering if there was an alternative faster way to accomplish the same thing?
```
from math import floor, log2
def count(n):
layers = 0
for i in range(1, n+1):
... | Maxheap counting the total swaps needed when inputting an array [1 to N] | CC BY-SA 4.0 | null | 2023-03-03T14:06:33.053 | 2023-03-03T15:13:59.757 | null | null | 21,085,849 | [
"python",
"algorithm",
"heap"
] |
75,628,098 | 2 | null | 75,626,350 | 2 | null | Yes, you will need a different gradient for each transformation. But the SVG gradient elements support [a bit of templating](https://www.w3.org/TR/SVG2/pservers.html#PaintServerTemplates):
> Most paint server elements accept an `href` attribute, which can be used to define a compatible paint server element as a templa... | null | CC BY-SA 4.0 | null | 2023-03-03T14:06:34.433 | 2023-03-03T14:06:34.433 | null | null | 4,996,779 | null |
75,628,099 | 2 | null | 75,594,208 | 0 | null | This is different than a lot of monitoring questions I found, because it's looking for a file to be there. The /MON of robocopy won't help in that case, for instance, since as far as I can tell, it monitors all changes.
This answer worked, modified slightly.
[https://superuser.com/a/983625/117443](https://superuser.c... | null | CC BY-SA 4.0 | null | 2023-03-03T14:06:35.833 | 2023-03-03T14:06:35.833 | null | null | 768,423 | null |
75,628,100 | 1 | null | null | 1 | 19 | I have a task about bulk process of accounts(count of accounts > 20000) using pl sql.
For accounts there are a lot of validations and also for now it works on single thread mode. And now existing job works more than 1 hour for this accounts.
I'd like implement multi thread mode for this project. Read a lot informations... | PL/SQL multi-threading | CC BY-SA 4.0 | null | 2023-03-03T14:06:39.640 | 2023-03-03T14:06:39.640 | null | null | 7,295,676 | [
"multithreading",
"plsql",
"parallel-processing",
"oracle11g",
"dbms-job"
] |
75,628,102 | 2 | null | 58,320,916 | 0 | null | ok, none worked for me, except this one, not sure if it's the right aproach tho....
1. my multiple locales are separated in multiple json files (the keys in json must have the same names like in interface OwlDateTimeIntl)
```
"owl.datetime.component" : {
"cancelBtnLabel": "Cancel, bye",
"setBtnLabel": "Set o... | null | CC BY-SA 4.0 | null | 2023-03-03T14:06:50.403 | 2023-03-03T14:06:50.403 | null | null | 3,190,916 | null |
75,628,104 | 2 | null | 8,156,389 | 0 | null | just fix all dir issues because if hbase fail to start it will be try to connect from strange IPs.
1. add to bin folder winutils.exe
2. correct path's
3. this is not a IP issue is a wrong dirs issues
> ```
hbase-env.cmd
set HBASE_CLASSPATH=%HBASE_HOME%\lib\client-facing-thirdparty\*
@rem my hbase in in bin bin so ... | null | CC BY-SA 4.0 | null | 2023-03-03T14:07:00.280 | 2023-03-03T14:07:00.280 | null | null | 979,474 | null |
75,628,105 | 1 | null | null | 0 | 5 | In general, i have not seen great success in including additional loss terms while training a neural network. For example, let us say i am solving an image to image translation problem and i use a U-Net like architecture. We typically use an MSE loss between the predicted and the ground truth images. Now, suppose for s... | How do i effectively train a network with a sum of two loss functions? | CC BY-SA 4.0 | null | 2023-03-03T14:07:00.913 | 2023-03-03T14:07:00.913 | null | null | 4,837,869 | [
"optimization",
"deep-learning",
"loss-function"
] |
75,628,106 | 1 | 75,628,446 | null | 3 | 24 | I have the following dataset
```
df
id medication_date
1 2000-01-01
1 2000-01-04
1 2000-01-06
2 2000-04-01
2 2000-04-02
2 2000-04-03
```
I would like to first reshape the data set into days after the first observation per patient:
```
id day1 day2 day3 day4
1 yes no no yes
2 yes yes yes no
```
in o... | Python: creating plot based on observation dates (not as a time series) | CC BY-SA 4.0 | null | 2023-03-03T14:07:01.423 | 2023-03-03T15:01:22.457 | 2023-03-03T14:20:19.677 | 4,718,350 | 5,510,540 | [
"python",
"pandas",
"plot"
] |
75,628,107 | 1 | null | null | 0 | 17 | I'm trying to interact with a moisture sensor and 3.3v submersible water pump to create an auto watering system, i'm currently prototyping and have run into an issue
When the code runs, it seems to get stuck on on setting the gpio_pin to high/moisture gets printed out once and never again. Not entirely sure whats happe... | Reading moisture sensor data and activating water pump causing infinite loop? | CC BY-SA 4.0 | null | 2023-03-03T14:07:04.640 | 2023-03-03T14:07:04.640 | null | null | 17,839,602 | [
"python",
"raspberry-pi",
"micropython"
] |
75,628,108 | 2 | null | 75,603,590 | 0 | null | There are a couple of issues with your approach:
1. when vue plugins are added to an app instance, the app has not yet been mounted, so you can't use onMounted or onUnmounted there. They can only be used inside setup.
2. Using resize event to track the current responsiveness interval is bad for performance. Instead, o... | null | CC BY-SA 4.0 | null | 2023-03-03T14:07:04.983 | 2023-03-04T14:00:36.670 | 2023-03-04T14:00:36.670 | 1,891,677 | 1,891,677 | null |
75,628,109 | 1 | null | null | 1 | 13 | has anybody found a capability of filtering / querying by a query in azure devops which exists in Jira, is very handy ?
In Jira it works as follows:
1. you create a query like - show me all the stories, or whatever - this will be filter=12345 after saving
2. you create a filter like "where filter=12345 and issue_type=... | Azure Devops, query based query | CC BY-SA 4.0 | null | 2023-03-03T14:07:05.580 | 2023-03-03T14:07:05.580 | null | null | 21,326,425 | [
"azure-devops",
"tfs",
"jira"
] |
75,628,110 | 1 | null | null | 0 | 10 | I would like to transfer specific cells in a row when in a certain cell a specific value is detected.
I have following script, but when I have more then 1 row that meets the value, the data isn't transferred properly.
```
var MASTERSHEET_ID = '162gDqlIC0YZRS6C4PoXnhKFMoe3O9estj1avTZgi34M';
function PUSHrondleiding() ... | Google script - transfer to other tab in spreadsheet | CC BY-SA 4.0 | null | 2023-03-03T14:07:33.693 | 2023-03-03T14:07:33.693 | null | null | 9,271,893 | [
"google-apps-script",
"google-sheets",
"spreadsheet"
] |
75,628,111 | 1 | null | null | 0 | 19 | After sending order by customer, application sends notification email to admin. If latter fails, I don't want to bother customer with error page. Just log error.
in controller:
```
try {
$mailer->sendToAdmin('New order', $body);
} catch (\Throwable $e) {
$logger->log($e);
}
```
Is it safe to catch \Throwable h... | Is it safe to catch general Exception in non crucial action? | CC BY-SA 4.0 | null | 2023-03-03T14:07:42.177 | 2023-03-03T15:00:46.773 | 2023-03-03T15:00:46.773 | 6,804,562 | 6,804,562 | [
"php",
"symfony"
] |
75,628,113 | 1 | null | null | 0 | 20 | I am working on an Android application written in Kotlin that needs to perform a POST operation in Elasticsearch. However, when I try to execute the following line of code:
```
var client: HttpClient = clientBuilder.build()
```
I get a NoSuchFieldError with the following message:
```
2023-03-02 16:28:10.436 7192-7192/... | NoSuchFieldError while building an HttpClient in Kotlin for Elasticsearch on Android | CC BY-SA 4.0 | null | 2023-03-03T14:07:54.940 | 2023-03-03T14:07:54.940 | null | null | 15,226,758 | [
"android",
"kotlin",
"elasticsearch"
] |
75,628,114 | 1 | null | null | 0 | 13 | I'm trying to append a column with an ULID to an existing MySQL table. I know how to do it with a function and an update query:
```
delimiter //
DROP FUNCTION IF EXISTS ulid//
CREATE FUNCTION ulid () RETURNS CHAR(26) DETERMINISTIC
BEGIN
DECLARE s_hex CHAR(32);
SET s_hex = LPAD(HEX(CONCAT(UNHEX(CONV(ROUND(UNIX_TIMESTAMP... | Append a column with an ULID to an existing MySQL table | CC BY-SA 4.0 | null | 2023-03-03T14:08:01.043 | 2023-03-03T18:51:14.280 | null | null | 2,235,673 | [
"mysql",
"ulid"
] |
75,628,115 | 1 | null | null | 0 | 7 | I am facing a strange behavior of Sass, when the expression of an @if-rule compares a variable with null.
```
$foo: null;
@debug $foo, $foo == null, $foo != null;
@if $foo == null {
@debug "$foo is null";
}
@if $foo != null {
@debug "$foo is not null";
}
```
```
DEBUG: null, true, false
DEBUG: $foo is not ... | Sass @if rule fails when expression is $my-variable == null | CC BY-SA 4.0 | null | 2023-03-03T14:08:04.133 | 2023-03-03T14:26:04.233 | null | null | 3,205,740 | [
"sass",
"dart-sass"
] |
75,628,116 | 1 | null | null | 0 | 13 | I have two datasets: force plate data and plantar pressure data. The force plate data consists of 6 data points, while the plantar pressure data consists of 90 data points. Both datasets have a sampling rate of 50 data points per second. Therefore, within one second, the force plate can generate a data array of 50x6, a... | why CNN the model can't predict 0 | CC BY-SA 4.0 | null | 2023-03-03T14:08:06.693 | 2023-03-03T14:17:44.520 | 2023-03-03T14:17:44.520 | 20,562,723 | 20,562,723 | [
"deep-learning",
"conv-neural-network",
"regression"
] |
75,628,117 | 1 | 75,634,648 | null | 0 | 28 | i have a list of users and i want to change permission for each user for that matter i have a button on each user row so when i click on it a modal form pops up with a select input and a submit button as follow :
1- this is the button
```
<a value ="<?= $value['id'];?>" class=" btn btn-secondary btn-sm btn-info permi... | Pass Id value to a modal form in codeigniter | CC BY-SA 4.0 | null | 2023-03-03T14:08:13.347 | 2023-03-04T12:31:59.727 | null | null | 8,216,436 | [
"javascript",
"php",
"codeigniter",
"modal-dialog"
] |
75,628,126 | 1 | null | null | -1 | 13 | I want to make application which will stream video from the camera of the device and sends it live to a server in Flutter
I am building the app in Flutter, but can't seem to find a well documented library/package in Flutter
| Live Streaming in Flutter | CC BY-SA 4.0 | null | 2023-03-03T14:08:44.610 | 2023-03-03T14:08:44.610 | null | null | 18,577,520 | [
"android",
"flutter",
"video-streaming",
"streaming",
"live-streaming"
] |
75,628,124 | 1 | null | null | 0 | 28 | I am sending simple request and I am getting JSON response:
```
{'status': 'success', 'orders': [{'id': '1666543', 'link': 'asd.com', 'quantity': '111'}]}
```
My code for response:
```
response = requests.get(url, params=params)
response.json()
wynik = response.json()
print(response.json())
with open('data.json', 'w',... | extracting JSON value and using it | CC BY-SA 4.0 | null | 2023-03-03T14:08:39.550 | 2023-03-03T14:24:32.817 | null | null | 19,974,912 | [
"python",
"json",
"python-requests",
"request"
] |
75,628,121 | 1 | 75,628,240 | null | 0 | 9 | I am trying to filter on a column defined as a MutableList, but I'm not sure how to do it, or if it is even possible?
Here's what I tried so far:
```
from sqlalchemy import Column, String, Integer, PickleType
from sqlalchemy.ext.mutable import MutableList
class MyClass(db.Model):
id = Column(Integer, primary_key=T... | how to filter on a SQLAlchemy MutableList column | CC BY-SA 4.0 | null | 2023-03-03T14:08:32.540 | 2023-03-03T14:18:52.730 | null | null | 16,421,158 | [
"sqlalchemy",
"flask-sqlalchemy",
"mutablelist"
] |
75,628,128 | 2 | null | 12,710,385 | 0 | null | I think that the main point was indicated by Yegor Lukash, saying that it's an Iterator.
However, you can get the expected result this way:
```
foreach($xml->category as $node)
{
$subcategories = ((array)$node)['subcategory'];
var_dump($subcategories);
}
```
---
About the feskr answer, I think it can be ... | null | CC BY-SA 4.0 | null | 2023-03-03T14:08:50.177 | 2023-03-03T14:35:07.857 | 2023-03-03T14:35:07.857 | 2,335,288 | 2,335,288 | null |
75,628,125 | 2 | null | 75,627,674 | 2 | null | As per your comment to Douwe de Haan's [post](https://stackoverflow.com/a/75627852/12571484), you can indeed use `display: contents` to ignore the `ul` container. See the example below.
Display: contents on [css-tricks](https://css-tricks.com/get-ready-for-display-contents/) and [MDN](https://developer.mozilla.org/en-U... | null | CC BY-SA 4.0 | null | 2023-03-03T14:08:43.693 | 2023-03-03T14:08:43.693 | null | null | 12,571,484 | null |
75,628,120 | 1 | null | null | 0 | 20 | I have a WordPress multisite running fine with version 6.0.3 with a heavy custom theme that someone else has developed. I also have a dev site running version 6.1.1, exact same theme & cloned database.
Within the theme, there are numerous places that use the `get_blog_details()` and `switch_to_blog()` WordPress functio... | WordPress multisite gets error 500 with get_blog_details() or switch_to_blog() ... Sometimes | CC BY-SA 4.0 | null | 2023-03-03T14:08:23.273 | 2023-03-03T14:08:23.273 | null | null | 2,023,687 | [
"php",
"wordpress",
"wordpress-theming",
"multisite"
] |
75,628,127 | 1 | null | null | -3 | 14 | I've been trying for about 2 months to get this working in VS2022, Win 11, project C++ CLR .NET Framework, without success. The dialog box opens and I can select the PDF file but nothing appears.
I can make it work in C#.
Isn't there someone who will be merciful and see if they can make it work :-)
[https://www.youtube... | How do I display a PDF file on a form in C++/Clr | CC BY-SA 4.0 | null | 2023-03-03T14:08:47.660 | 2023-03-03T14:19:24.313 | 2023-03-03T14:19:24.313 | 487,892 | 21,072,204 | [
"c++-cli"
] |
75,628,123 | 1 | null | null | 1 | 20 | I want to use `X-Requested-With` in the headers when calling my server API. The server has an .`htaccess` line to look for a specific value in the `X-Requested-With` field, ie: `X-Requested-with: com.myApp` - if not found, reject the connection. Yes, I know `X-Requested-With` can be spoofed and is not a secure method... | .htaccess rejecting iOS connections when passing required X-Requested-With | CC BY-SA 4.0 | null | 2023-03-03T14:08:38.547 | 2023-03-04T01:17:03.567 | 2023-03-03T15:46:59.433 | 2,036,221 | 2,036,221 | [
"android",
"ios",
".htaccess",
"xmlhttprequest",
"http-headers"
] |
75,628,119 | 1 | null | null | 0 | 8 | Regarding the RemoteStartTransaction command of ocpp, my charging pile has established a connection with the ocpp server, but the command I send when I connect through WS is to create a new charging point
```
async def send_call():
async with websockets.connect('ws://xxxxx.com:9000', subprotocols=["ocpp1.6"]) as we... | Regarding the RemoteStartTransaction command of ocpp | CC BY-SA 4.0 | null | 2023-03-03T14:08:18.240 | 2023-03-03T14:11:08.587 | 2023-03-03T14:11:08.587 | 17,789,182 | 17,789,182 | [
"python",
"ocpp"
] |
75,628,132 | 1 | null | null | -4 | 17 | I hope someone can help me, a few days ago I created an .exe file without viruses or anything malicious with go-build. On my computer it runs correctly but when I share it with a friend (we both use Windows) his computer did not allow him to run it and he put it on quarantine. Basically I don't know what to do to be ab... | Problems opening an .EXE in windows | CC BY-SA 4.0 | null | 2023-03-03T14:09:10.157 | 2023-03-03T14:09:10.157 | null | null | 21,326,429 | [
"go",
"operating-system",
"exe",
"secure-coding",
"go-build"
] |
75,628,134 | 2 | null | 75,628,006 | 0 | null | It's not recommended to use regex for numeric range validation.
[Using regular expressions to validate a numeric range](https://stackoverflow.com/questions/22130429)
BTW, you can have something like this, check for 101-109, 110-199, 200-999, 1000-1049 and 1050-1056 separately.`^(10[1-9]|1[1-9][0-9]|[2-9][0-9]{2}|10[0-4... | null | CC BY-SA 4.0 | null | 2023-03-03T14:09:17.210 | 2023-03-03T14:39:23.597 | 2023-03-03T14:39:23.597 | 14,794,536 | 14,794,536 | null |
75,628,133 | 1 | null | null | -1 | 4 | I am an user of gem5 simulators and I am encountering an issue while trying to validate the parsec.json file. The error is shown below:
[image issue](https://i.stack.imgur.com/YLWaQ.png)
Do you have any ideas?
Thank you in advance!
I have tried to enter another path thinking that will solve the issue, but I had no resu... | Path issue in parsec.json file | CC BY-SA 4.0 | null | 2023-03-03T14:09:14.467 | 2023-03-03T14:09:14.467 | null | null | 21,325,150 | [
"linux",
"ubuntu",
"vmware",
"parsec",
"gem5"
] |
75,628,135 | 2 | null | 75,627,151 | 1 | null | As pointed out by @daniu in the comments you can remove the most reviewed element and add it back at the desired index. You can simplify the logic of finding the most reviewed element after a certain index by using Collections.max and passing a sublist. Something like below should be equivalent:
```
List<Hotel> hotels ... | null | CC BY-SA 4.0 | null | 2023-03-03T14:09:28.580 | 2023-03-03T14:09:28.580 | null | null | 5,176,992 | null |
75,628,139 | 2 | null | 75,626,364 | 0 | null | It's handled in way how the component is being added in the container component.
Try using tab Index config - [https://docs.sencha.com/extjs/7.6.0/classic/Ext.form.field.Text.html#cfg-tabIndex](https://docs.sencha.com/extjs/7.6.0/classic/Ext.form.field.Text.html#cfg-tabIndex)
Share Sencha fiddle with similar layout
| null | CC BY-SA 4.0 | null | 2023-03-03T14:10:04.967 | 2023-03-03T14:10:04.967 | null | null | 20,710,985 | null |
75,628,136 | 2 | null | 75,485,062 | 0 | null | Add to your dict message additional data:
```
{
"action": "create"/"update"/"delete",
"message": {"id": <>, ...},
...
}
```
And make appropriate action depending on value of `"action"` field inside `def receive()`
| null | CC BY-SA 4.0 | null | 2023-03-03T14:09:31.143 | 2023-03-03T14:09:31.143 | null | null | 9,601,060 | null |
75,628,137 | 2 | null | 75,627,834 | 0 | null | You can't mock this call using Mockito be URL is created inside the method, consider changing the method signature of:
```
public static Object callApi(String jsonPayload) throws IOException
```
to
```
public static Object callApi(String jsonPayload, HttpURLConnection http) throws IOException
```
and then you pass t... | null | CC BY-SA 4.0 | null | 2023-03-03T14:09:44.640 | 2023-03-03T14:09:44.640 | null | null | 3,642,410 | null |
75,628,130 | 1 | null | null | 0 | 17 | My second transitionend doesnt get triggered at all and my first transitionend gets triggered to early.
I want to let a div transform to the left out of the window and when finished display none and transform it to the right out of the window. After that finished I want to set display to inline-block and Transform it b... | How do trigger a transionend event after another transitionend event triggered? | CC BY-SA 4.0 | null | 2023-03-03T14:09:07.283 | 2023-03-03T14:09:07.283 | null | null | 17,142,786 | [
"javascript",
"css",
"css-transitions",
"css-transforms"
] |
75,628,141 | 2 | null | 73,352,025 | 0 | null | I suggest you to use SCP & TagPolicy if you have AWS Organization :
1. Source Control Policy: to enforce tag usage.
2. Tag Policy : to validate the values that you'll set as policy
For more information see this link : [https://repost.aws/questions/QULCbS92i8Twma2yTQfKumSw/how-to-enforce-tags-while-creating-any-kind-... | null | CC BY-SA 4.0 | null | 2023-03-03T14:10:21.143 | 2023-03-03T14:10:21.143 | null | null | 12,247,011 | null |
75,628,145 | 2 | null | 75,627,029 | 1 | null | Another possible solution:
```
df.columns = (pd.DataFrame
.from_records([[''.join(sorted(x)), x] for x in df.columns])
.groupby(0)[1].transform('first').to_list())
df.stack().groupby(level=[0,1]).sum().unstack()
```
Output:
```
CaO NaMg OH OO
0 2 2 5 1
1 7 2 2 5
2 ... | null | CC BY-SA 4.0 | null | 2023-03-03T14:10:44.533 | 2023-03-03T14:10:44.533 | null | null | 11,564,487 | null |
75,628,146 | 2 | null | 75,040,067 | 0 | null | I'm with same problem here. It seems jest coverage is not being tracked for the module executed on globalSetup.
| null | CC BY-SA 4.0 | null | 2023-03-03T14:10:46.233 | 2023-03-03T14:10:46.233 | null | null | 14,634,927 | null |
75,628,140 | 2 | null | 75,627,832 | 2 | null | To summarize, your code works by multiplying each pair of digits and adding them all up with shifting to get a final answer.
E.g. `12 x 45` works by multiplying 1x4 (shift 2), 1x5 (shift 1), 2x4 (shift 1) and 2x5 (shift 0).
The bug seems to be that when you add the shifted numbers into the answer you don't make carries... | null | CC BY-SA 4.0 | null | 2023-03-03T14:10:11.420 | 2023-03-03T14:10:11.420 | null | null | 106,104 | null |
75,628,147 | 1 | null | null | 0 | 11 | I have a new Nuxt 3 application. In my config.ts, I have the following variables defined:
```
runtimeConfig: {
// Private keys are only available on the server
// Public keys that are exposed to the client
public: {
baseUrl: process.env.NUXT_PUBLIC_BASE_URL || '<url>',
co... | Nuxt 3/Docker/Kubernetes Environment Variables | CC BY-SA 4.0 | null | 2023-03-03T14:10:49.070 | 2023-03-03T14:10:49.070 | null | null | 10,092,887 | [
"docker",
"kubernetes",
"nuxt.js",
"nuxtjs3"
] |
75,628,148 | 1 | null | null | 0 | 18 | It is possible to configure the `CMFCColorDialog` to how the active colour in a tooltip when the mouse is over it?
[](https://i.stack.imgur.com/Y4GnG.jpg)
Being colour blind I find it hard to identify "Red" for example. I got around it by clicking the Custom tab and using the RGB properties and setting Red that way:
[]... | Is there any way for a tooltip to show the selected colour descriptively? | CC BY-SA 4.0 | null | 2023-03-03T14:10:49.403 | 2023-03-03T14:49:12.850 | 2023-03-03T14:49:12.850 | 2,287,576 | 2,287,576 | [
"visual-c++",
"mfc",
"tooltip",
"colordialog"
] |
75,628,143 | 1 | 75,628,200 | null | -2 | 60 | I have the following task:
:long long CountSumS(vector &a, int s)
The function will return the number of pairs with (a[i], a[j]); i < j; a[i] + a[j] = s)
:
If a = (8, 2, 3, 8, 7, 5) and s = 10, the function will return 3, the pairs being (8, 2), (2, 8) and (3, 7)
I'm also trying to do this efficiently, so simply taking... | Number of values in a vector that add up to a sum S | CC BY-SA 4.0 | null | 2023-03-03T14:10:30.153 | 2023-03-03T19:52:26.567 | null | null | 21,038,359 | [
"c++",
"stl",
"sum",
"iterator",
"unordered-map"
] |
75,628,144 | 1 | null | null | 1 | 6 | so im trying to make a petri-net simulation tool and this function is supposed to create the buttons for transitions and enable me to click them to fire the transition therefore adding and deleting the appropriate markings .its is functional but I have 2 problems that I dunno how to solve
1. If i add more than on butt... | function for button creation is not working properly | CC BY-SA 4.0 | null | 2023-03-03T14:10:39.117 | 2023-03-03T14:10:39.117 | null | null | 21,325,850 | [
"python",
"math"
] |
75,628,149 | 2 | null | 75,627,927 | 1 | null | The Unicode property class in Java looks like
```
\p{InLatin_1_Supplement}
```
See the [Java demo online](https://ideone.com/zWaeJM):
```
String s = "ëè";
System.out.println(s.matches("\\p{InLatin_1_Supplement}+")); // -> true
```
| null | CC BY-SA 4.0 | null | 2023-03-03T14:10:52.093 | 2023-03-03T14:10:52.093 | null | null | 3,832,970 | null |
75,628,129 | 1 | 75,628,771 | null | 0 | 20 | My mutation takes a useState variable as a parameter and passes it to the Mongoose API to save on MongoDB. I've been trying to get this API to work, but for some reason, I always get a `POST http://localhost:4000/graphql 400 (Bad Request)` error.
I'm trying to console.log the mutation input variable server-side but the... | Why does GraphQL Mutation fail with 400 error? | CC BY-SA 4.0 | null | 2023-03-03T14:08:58.190 | 2023-03-03T19:08:23.497 | 2023-03-03T19:07:49.597 | 2,805,154 | 19,293,506 | [
"node.js",
"typescript",
"mongodb",
"mongoose",
"graphql"
] |
75,628,152 | 2 | null | 75,590,829 | 1 | null | There are several mistakes here:
-
```
remotes: {
components: 'components@http://localhost:3001/_next/static/chunks/remoteEntry.js',
},
```
- - [next/dynamic](https://nextjs.org/docs/advanced-features/dynamic-import)
I made a [PR](https://github.com/tripaider/next-mf/pull/1) fixing the inconsistencies, I'd highly r... | null | CC BY-SA 4.0 | null | 2023-03-03T14:11:04.817 | 2023-03-03T15:02:28.673 | 2023-03-03T15:02:28.673 | 1,749,956 | 10,793,242 | null |
75,628,150 | 2 | null | 12,718,187 | 0 | null |
# for python version >= 3.10 staticmethod functions can be called from within the class scope just fine
- [https://discuss.python.org/t/staticmethod-called-outside-class-scope/15007/4](https://discuss.python.org/t/staticmethod-called-outside-class-scope/15007/4)[python issue #87848](https://github.com/python/cpython... | null | CC BY-SA 4.0 | null | 2023-03-03T14:10:54.790 | 2023-03-03T14:23:19.453 | 2023-03-03T14:23:19.453 | 52,074 | 52,074 | null |
75,628,118 | 1 | 75,628,496 | null | 0 | 39 | I am trying to align the cards using `row` and `col-` classes from bootstrap. The first three work as its supposed to but the fourth one doesnt do what i want it to do. Does anyone have an idea as to why this is happening and maybe also have a solution for me?
[The problem in question](https://i.stack.imgur.com/n6JBJ.p... | Align bootstrap cards with filter forms on the left | CC BY-SA 4.0 | null | 2023-03-03T14:08:14.067 | 2023-03-03T14:44:08.047 | null | null | 18,642,024 | [
"html",
"css",
"angular",
"sass",
"bootstrap-5"
] |