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,636,439 | 1 | 75,636,728 | null | 0 | 12 | Say I have a table called `test` that looks like that:
```
create table test (
org varchar,
product varchar,
release_date varchar,
date_avail varchar,
status varchar
);
insert into test values
('a','bpm','2022-07','no','green'),
('a','bpm','2022-07','no','green'),
('a','bpm','2022-07',... | count grand total of group by operation but also sub total of the same group by operation based on other columns | CC BY-SA 4.0 | null | 2023-03-04T14:51:54.267 | 2023-03-04T15:37:59.980 | 2023-03-04T15:19:35.130 | 8,176,763 | 8,176,763 | [
"postgresql"
] |
75,636,446 | 1 | null | null | 1 | 28 | I am trying to delete all video file copies in my video folder, I used Adobe Media Encoder to make all my videos a smaller size so that they don't take up as much storage on my PC. I want to delete the files that were previously there. I have tried multiple different articles/StackOverflow forums of doing so but they'r... | How do I delete files using PowerShell that DON'T include a certain name? | CC BY-SA 4.0 | null | 2023-03-04T14:52:17.473 | 2023-03-04T15:01:00.107 | 2023-03-04T15:01:00.107 | 20,034,051 | 20,034,051 | [
"windows",
"powershell"
] |
75,636,443 | 1 | null | null | -1 | 15 | In Hangfire Recurring Jobs:
```
HangfirePeriodicBackgroundWorkerAdapter<BackgroundJobWorker>.DoWorkAsync
```
[](https://i.stack.imgur.com/MTnQu.png)
Who can tell me what the first one means? What is the function? Can I delete it? It seems to be executed every five seconds?
Thanks very match!
Will it consume too much r... | abp, Who can tell me what the first one means? Hangfire Recurring Jobs | CC BY-SA 4.0 | null | 2023-03-04T14:52:07.883 | 2023-03-04T14:55:47.853 | 2023-03-04T14:55:47.853 | 11,683 | 21,331,975 | [
"jobs",
"hangfire",
"abp",
"recurring"
] |
75,636,444 | 2 | null | 11,985,228 | 0 | null | Previous answers will work, but I do found that we might need another additional check in order to cater some edge case, exp: any random 12 char string.
- This is applicable on mongoose / mongodb (I have tested for both node driver)```
// const ObjectId = require('mongoose').Types.ObjectId; if you use mongoose
const Ob... | null | CC BY-SA 4.0 | null | 2023-03-04T14:52:13.070 | 2023-03-05T06:00:03.037 | 2023-03-05T06:00:03.037 | 10,848,593 | 10,848,593 | null |
75,636,450 | 1 | null | null | -1 | 33 | I want to do a graph similar to one the below but really don´t know what code to use. The data I am using is this one too.
[The graph I want](https://i.stack.imgur.com/THziC.png)
[The data I have](https://i.stack.imgur.com/RnnZG.png)
I don´t know what code to use, and the x-axis doesn´t show the years...
| I want to graph in R the inflation rate of various economies over a 5 year period? | CC BY-SA 4.0 | null | 2023-03-04T14:53:54.100 | 2023-03-04T14:55:42.047 | 2023-03-04T14:55:42.047 | 322,912 | 21,332,002 | [
"r",
"stata"
] |
75,636,452 | 2 | null | 73,172,526 | 0 | null | Run your app on windows machine the error will be clear and can catch it easily, after that go back to android
| null | CC BY-SA 4.0 | null | 2023-03-04T14:54:01.703 | 2023-03-04T14:54:01.703 | null | null | 19,299,212 | null |
75,636,449 | 2 | null | 75,634,301 | 0 | null | A lineplot seems unadapted to your use case. You can keep track of all your parameters with `seaborn.scatterplot`, using different colors for `Gender` and sizes for `Age` for instance:
```
import seaborn as sns
import matplotlib.pyplot as plt
sns.scatterplot(data=df, x='Frame', y='Emotion', hue='Gender', size='Age')
p... | null | CC BY-SA 4.0 | null | 2023-03-04T14:53:01.643 | 2023-03-04T14:53:01.643 | null | null | 13,525,512 | null |
75,636,447 | 2 | null | 55,652,449 | 0 | null | Take a look at this:
[https://plotly.com/r/reference/layout/polar/](https://plotly.com/r/reference/layout/polar/)
My example:
```
library(plotly)
fig <- plot_ly(
type = 'scatterpolar',
mode = 'lines'
)
fig <- fig %>%
add_trace(
r = c(6.5, 3.2, 2.8, 4.6, 6.5),
theta = c(45, 135, 225, 315, 45),
... | null | CC BY-SA 4.0 | null | 2023-03-04T14:52:25.483 | 2023-03-04T14:52:25.483 | null | null | 4,082,149 | null |
75,636,454 | 2 | null | 75,636,145 | 0 | null | Edit: I have now reached a solution, the issue was that the ingestion_time field was incorrectly included in the topic schema. Once I removed it and published a test message, the defaultValueExpression is applied correctly.
| null | CC BY-SA 4.0 | null | 2023-03-04T14:54:11.127 | 2023-03-04T14:54:11.127 | null | null | 7,228,100 | null |
75,636,451 | 1 | 75,636,606 | null | 0 | 16 | The first part `[^A-Za-z|\s]` is easy to understand. It is to exclude letters and space. However I don't understand the second part `(x)\1{1,}`, especially `\1`. I was thinking it is to catch a pattern like `x1` or `x111` but when running it it turns out that it is not.
| Understand a Python regex "[^A-Za-z|\s]|(x)\1{1,}" | CC BY-SA 4.0 | null | 2023-03-04T14:53:58.827 | 2023-03-04T15:22:16.827 | null | null | 6,302,803 | [
"regex",
"python-re"
] |
75,636,453 | 2 | null | 75,298,605 | 1 | null | I understand your problem. This error happened when an attempt to connect to database server fails. You should place your "connectionString " in the "appsettings.json" file. Just add this line to your "appsettings.json" file.
```
"ConnectionStrings": {
"WinAuth": "Data Source=citfood; Initial Catalog=food; Integrated S... | null | CC BY-SA 4.0 | null | 2023-03-04T14:54:10.060 | 2023-03-04T14:54:10.060 | null | null | 8,405,742 | null |
75,636,456 | 1 | null | null | 0 | 3 | I want to enable my app users to create events in there ms teams, What are the steps to take with Microsoft to get the token ms teams? Then what are the correct settings in the api connector?
| how to set up ms teams api integration for bubble.io app using api connector? | CC BY-SA 4.0 | null | 2023-03-04T14:54:35.350 | 2023-03-04T14:54:35.350 | null | null | 21,331,996 | [
"api",
"microsoft-teams",
"bubble.io"
] |
75,636,455 | 2 | null | 44,358,468 | 0 | null | I had this same issue and just found out how to fix it since it was bothering me.
I used to be able to just install a font and use this path in Python:
`"C:/Windows/Fonts/ARCHRISTY.ttf"`
But i guess Windows doesn't actually install the ttf there anymore. I went into the `"C:/Windows/Fonts/"` folder and right clicked th... | null | CC BY-SA 4.0 | null | 2023-03-04T14:54:12.637 | 2023-03-04T14:54:12.637 | null | null | 9,312,988 | null |
75,636,458 | 1 | null | null | -4 | 29 | any body can help cause am getting mad about that error
when i launch why i launch SqlTableDependency.Start() i get an error:
i am using windows application
.net 4.5.2
sqlserver 2012
thanks for helping
i am trying to know what cause the error i have and if any one have the solution
| why i am getting an error when i launch SqlTableDependency.Start | CC BY-SA 4.0 | null | 2023-03-04T14:54:43.623 | 2023-03-04T14:54:43.623 | null | null | 20,834,824 | [
"c#",
"sql-server",
"winforms",
"error-handling",
"sqldependency"
] |
75,636,457 | 2 | null | 14,055,495 | 0 | null | I have written this python script, to move and rename the .srt file to the root folder. If it can help someone.
```
import os, shutil
directory= r'\\c:\path_to_main_folder'
working_directory = directory + "\Subs"
for file in os.listdir(working_directory):
for subtitle_file in os.listdir(os.path.join(working_dire... | null | CC BY-SA 4.0 | null | 2023-03-04T14:54:37.483 | 2023-03-04T14:58:16.423 | 2023-03-04T14:58:16.423 | 21,332,046 | 21,332,046 | null |
75,636,448 | 1 | null | null | 0 | 19 | I am trying to create a python discord bot in replit. The code seems to be perfect but when I run the script, it does not give any errors but does not respond to the ">kick @user" in the discord server. I think there is something to do with replit. The code is given below:-
```
import discord
import os
from discord.ext... | Why does discord bot commands not working on replit | CC BY-SA 4.0 | null | 2023-03-04T14:52:46.587 | 2023-03-04T14:52:46.587 | null | null | 18,427,473 | [
"python",
"discord",
"bots",
"replit"
] |
75,636,459 | 2 | null | 75,636,214 | 0 | null | The logic you proposed is already true, e.g.
```
for rows in range(-2, 9, 1):
cond1 = (rows <= 0) or (rows >= 6)
cond2 = (rows <= 5) and (rows >= 1)
print(rows, cond1, cond2)
```
will produce
```
-2 True False
-1 True False
0 True False
1 False True
2 False True
3 False True
4 False True
5 False True
6 T... | null | CC BY-SA 4.0 | null | 2023-03-04T14:54:50.650 | 2023-03-04T14:54:50.650 | null | null | 9,475,509 | null |
75,636,460 | 2 | null | 75,634,357 | 2 | null | Use `__init_subclass__` instead of `initProperties`. (This class method—special-cased so that you don't need to decorate it with `classmethod`—was added to handle many of the things a metaclass would otherwise be necessary for.)
```
class BaseData:
@staticmethod
def internalName(name: str) -> str:
retur... | null | CC BY-SA 4.0 | null | 2023-03-04T14:54:55.737 | 2023-03-04T14:54:55.737 | null | null | 1,126,841 | null |
75,636,461 | 2 | null | 75,636,395 | 1 | null | [Consider using Object.prototype.hasOwnProperty.call instead.](https://stackoverflow.com/questions/12017693/why-use-object-prototype-hasownproperty-callmyobj-prop-instead-of-myobj-hasow) You don't need the `found` variable either. You can just directly return from the loop.
```
const obj = { a: { b: { c: { d: { e: { do... | null | CC BY-SA 4.0 | null | 2023-03-04T14:54:57.713 | 2023-03-04T14:54:57.713 | null | null | 18,244,921 | null |
75,636,466 | 1 | null | null | 0 | 9 | I have a Raspberry Pi with a Sixfab Cellular Hat that is behind a CG-NAT. I have set up a reverse SSH tunnel between my server and Raspberry Pi, but I noticed that the upload and download amounts sum up to around 26 MB per day. Is there a way to minimize the upload and download amount, or are these metrics normal for t... | How to minimize upload/download amount for a reverse SSH tunnel on a Raspberry Pi with Cellular Hat? | CC BY-SA 4.0 | null | 2023-03-04T14:56:08.250 | 2023-03-04T14:56:48.523 | 2023-03-04T14:56:48.523 | 5,125,001 | 5,125,001 | [
"ssh",
"raspberry-pi",
"cellular-network",
"network-monitoring"
] |
75,636,463 | 2 | null | 75,514,170 | 0 | null | Create a function that ingests your vector of interest and returns a two column data table with column names `out.down` and `out.up`.. You can adjust the function `f()` below for your purposes:
```
f <- function(x) {
q = quantile(x,p=c(0.25, 0.75), na.rm=T)
data.table(out.down = x<q[1], out.up = x>q[2])
}
```
Then... | null | CC BY-SA 4.0 | null | 2023-03-04T14:55:04.940 | 2023-03-04T14:55:04.940 | null | null | 4,447,540 | null |
75,636,462 | 2 | null | 75,630,716 | 0 | null | If your [rdbms](/questions/tagged/rdbms) supports it ([oracle](/questions/tagged/oracle), notably, does not) there's effectively no difference - both statements will update all the rows in the table.
These kind of statements sometimes get generated by automatic code generators that can't just skip the `where` clause, b... | null | CC BY-SA 4.0 | null | 2023-03-04T14:54:59.283 | 2023-03-04T14:54:59.283 | null | null | 2,422,776 | null |
75,636,464 | 2 | null | 75,600,542 | 0 | null | You can add a cart validator, es [described in the docs](https://developer.shopware.com/docs/guides/plugins/plugins/checkout/cart/add-cart-validator)
You implement your own `Shopware\Core\Checkout\Cart\CartValidatorInterface`, register, add your own error extending `Shopware\Core\Checkout\Cart\Error\Error`
Register it ... | null | CC BY-SA 4.0 | null | 2023-03-04T14:55:52.377 | 2023-03-04T14:55:52.377 | null | null | 1,480,397 | null |
75,636,467 | 2 | null | 73,476,638 | 0 | null | Here it is how i solve this by reading a lot of stack overflow,
basically change `final void Function() answerQuestions;` to `final Function(int) answerQuestions;` and also change this `answerQuestions(answer["score"] as int)`
```
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter/src/widgets... | null | CC BY-SA 4.0 | null | 2023-03-04T14:56:32.233 | 2023-03-04T14:56:32.233 | null | null | 13,812,745 | null |
75,636,471 | 2 | null | 75,631,022 | 0 | null | Shorter formula for older versions:
```
=--SUBSTITUTE(REPLACE(A2,1,8,MID(A2,5,2)&"/"&LEFT(A2,3)&"/")," @ "," ")
```
(English-locale)
```
=--SUBSTITUTE(REPLACE(A2,1,8,MID(A2,5,2)&"/"&FIND(LEFT(A2,3)," JanFebMarAprMayJunJulAugSepOctNovDec")/3&"/")," @ "," ")
```
(non-English locale)
| null | CC BY-SA 4.0 | null | 2023-03-04T14:56:51.103 | 2023-03-04T16:59:13.563 | 2023-03-04T16:59:13.563 | 18,824,727 | 18,824,727 | null |
75,636,470 | 2 | null | 75,636,091 | 0 | null | It seems like category name and asset path are the only two things that are changing. I'd recommend creating two lists:
- `List<String> categories`- `List<String> assetPaths`
and using them in GridView like this:
```
GridView.count(
crossAxisCount: 2, // decides number of columns
shrinkWrap: true, // cl... | null | CC BY-SA 4.0 | null | 2023-03-04T14:56:48.350 | 2023-03-04T17:36:22.313 | 2023-03-04T17:36:22.313 | 8,414,124 | 8,414,124 | null |
75,636,474 | 1 | 75,636,515 | null | 1 | 33 | I'm producing an AJAX generated list, there's a "load more" button that should increment the counter by 8 each time
The code for the button is `<button data-pointer="8"></button>`. The Javascript that runs the AJAX call send this value through the call;
```
var pointer = $(this).attr('data-pointer');
send AjaxRequest(... | Why is Javascript number type being changed to string? | CC BY-SA 4.0 | null | 2023-03-04T14:57:32.573 | 2023-03-04T15:03:34.267 | null | null | 3,009,441 | [
"javascript"
] |
75,636,475 | 2 | null | 75,636,281 | 0 | null | It looks like you don't need 32-bit data like "0x040000f7" and instead you should simply send data for each channels.
```
#include <SPI.h>
byte ch4, ch3, ch2, ch1;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(10, OUTPUT); //set SS pin as output
SPI.begin(); // initialize... | null | CC BY-SA 4.0 | null | 2023-03-04T14:57:44.990 | 2023-03-04T14:57:44.990 | null | null | 4,062,354 | null |
75,636,479 | 2 | null | 75,632,551 | 0 | null | You need to parse the request into json format
```
export async function POST(request: Request) {
const { user_id } = await request.json()
console.log(user_id)
return new Response('Success');
}
```
| null | CC BY-SA 4.0 | null | 2023-03-04T14:57:59.350 | 2023-03-04T14:57:59.350 | null | null | 2,308,038 | null |
75,636,478 | 2 | null | 66,673,059 | 0 | null | Although a bit late, AWS does provide a sample repo to fulfill your requirements. The example makes use of the AWS CDK Python to setup the VPC endpoint to Codeartifacts and your private VPC. Although the Python Lambda version is 3.7 (deprecated already), you can update it to Python 3.10 (latest) and updates the AWS CDK... | null | CC BY-SA 4.0 | null | 2023-03-04T14:57:56.787 | 2023-03-04T14:57:56.787 | null | null | 6,251,738 | null |
75,636,483 | 2 | null | 75,619,158 | 0 | null | Did you create the table on your test database ? Since it is not managed, there will be no migration for creating it. Meaning you'll need to handle its creation for your test database.
You can also follow [this blog](https://hannylicious.com/blog/testing-django/) that advises to switch to managed=True for tests
| null | CC BY-SA 4.0 | null | 2023-03-04T14:59:03.043 | 2023-03-04T14:59:03.043 | null | null | 20,263,044 | null |
75,636,484 | 1 | null | null | 1 | 9 | I have an array of object which contain nodes connected to other node using relationship.
Suppose first node is for chemical name say ethanol .So image of ethanol added to the node 1 same for other nodes. It implemented using react.js and cytoscape.js.
Thanks
I create react app when I run it using... | Cytoscape.js implementation | CC BY-SA 4.0 | null | 2023-03-04T14:59:20.727 | 2023-03-04T14:59:20.727 | null | null | 21,070,980 | [
"html",
"css",
"reactjs",
"cytoscape"
] |
75,636,468 | 1 | null | null | 0 | 8 | This is my code to generate predictions for test videos in the model and this is how it works
First, we will create two empty lists – one to store the predictions and the other to store the actual tags
Then, we will take each video from the test set, extract frames for this video and store it in a folder (create a fold... | I`m trying to generate predictions for test videos but I have this error (IndexError: arrays used as indices must be of integer (or boolean) type) | CC BY-SA 4.0 | null | 2023-03-04T14:56:35.517 | 2023-03-04T15:06:49.540 | 2023-03-04T15:06:49.540 | 21,332,007 | 21,332,007 | [
"keras",
"deep-learning",
"conv-neural-network",
"multiclass-classification",
"image-classification"
] |
75,636,482 | 2 | null | 75,636,091 | 0 | null | you can achieve it with `List.generate(length, (index)=> )` or using `name.map( (element) => )`
here how your code will look like
```
Column(
children: List.generate(name.length, (index) => Column(children:Container(
margin: EdgeInsets.only(top: 15),
... | null | CC BY-SA 4.0 | null | 2023-03-04T14:59:02.807 | 2023-03-04T14:59:02.807 | null | null | 11,614,768 | null |
75,636,472 | 2 | null | 73,886,563 | 0 | null | I have been dealing with this issue for a couple of days and I just wanted to post the solution that I have found. It is really not that obvious so hopefully it helps others.
first it appears that the issue is not with Buildozer but with the package python-for-android that Buildozer relies on (and is actually not reall... | null | CC BY-SA 4.0 | null | 2023-03-04T14:57:06.620 | 2023-03-04T14:57:06.620 | null | null | 21,319,488 | null |
75,636,486 | 1 | null | null | -1 | 18 | Why do we get " undefined reference to `WinMain@16' " error. I use eclipse IDE for C programming language and minGw. I have also included main() function .
I have been using Eclipse IDE for Java. Im new to CDT.
Can we work on both Java and C in eclipse.
I wanted to get output for a simple Hello World Program
| eclipse undefined reference to `WinMain@16' | CC BY-SA 4.0 | null | 2023-03-04T14:59:23.963 | 2023-03-04T14:59:23.963 | null | null | 20,385,615 | [
"c",
"windows",
"eclipse",
"mingw",
"eclipse-cdt"
] |
75,636,485 | 2 | null | 75,636,357 | -1 | null | Based on [MDN Same-origin Policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#definition_of_an_origin), the website named `http://store.company.com/dir/page.html` will be:
1. Same-origin if the iframe http://store.company.com/dir2/other.html
2. Same-origin if the iframe http://store.compan... | null | CC BY-SA 4.0 | null | 2023-03-04T14:59:23.683 | 2023-03-04T14:59:23.683 | null | null | 12,715,723 | null |
75,636,480 | 1 | null | null | 0 | 8 | I would like to override all product attribute, with a new array of product attribute
The best i have is the code below which works great but it keep appending the new attributes whereas it should only have newest value only. Please advice me if you have a solution.
I tried some things like delete post meta, delete met... | Update all product attribute with new group of attribute | CC BY-SA 4.0 | null | 2023-03-04T14:58:36.563 | 2023-03-04T14:58:36.563 | null | null | 21,331,697 | [
"wordpress",
"woocommerce"
] |
75,636,487 | 2 | null | 39,072,216 | -1 | null | I have same problem strapi side.
I just get the json from network.
## Get Swagger JSON from Network
[](https://i.stack.imgur.com/w2VkS.jpg)
Get this json and save it as file.
[](https://i.stack.imgur.com/qbOek.jpg)
Import you saved json file before.
[](https://i.stack.imgur.com/mIiYJ.jpg)
[](https://i.stack.imgur.co... | null | CC BY-SA 4.0 | null | 2023-03-04T14:59:28.530 | 2023-03-04T14:59:28.530 | null | null | 12,686,246 | null |
75,636,490 | 1 | null | null | -1 | 11 | Have been trying to understand reacts components and props for while any simple explanation?
Have written some code execute well though not understand the flow of program.
| React.js components and props | CC BY-SA 4.0 | null | 2023-03-04T14:59:47.693 | 2023-03-04T14:59:47.693 | null | null | 21,332,017 | [
"javascript",
"reactjs"
] |
75,636,492 | 2 | null | 75,635,811 | 0 | null | since you are having problem with UTF-8, you can try the UTF-8 + BOM encoding as it always works for me in any case as my tomcat server used to show a huge error on typing arabic. So now you should be able to run them on both servers. This should do the trick.
| null | CC BY-SA 4.0 | null | 2023-03-04T14:59:57.330 | 2023-03-04T14:59:57.330 | null | null | 21,316,231 | null |
75,636,493 | 2 | null | 50,361,138 | -3 | null | cd /
mkdir code
cd code
git clone git@github.com:
| null | CC BY-SA 4.0 | null | 2023-03-04T15:00:03.303 | 2023-03-04T15:00:03.303 | null | null | 18,854,949 | null |
75,636,434 | 1 | null | null | -1 | 21 | I am using two OpenGL compute shaders to run:
```
static const char* runShader = "#version 310 es\n"
"precision highp float;\n"
"layout(local_size_x = %d, local_size_y = 1, local_size_z = 1) in;\n"
"layout(std430) buffer;\n"
"layout(binding = 0) buffer Network\n"
"{\n"
" float e[];\n"
"} n... | opengl compute shaders for neural networks give very different results than CPU implementation after a few iterations | CC BY-SA 4.0 | null | 2023-03-04T14:51:06.867 | 2023-03-04T22:38:55.410 | 2023-03-04T22:38:55.410 | 15,544,057 | 15,544,057 | [
"c",
"opengl",
"gpu",
"glsl",
"compute-shader"
] |
75,636,473 | 2 | null | 8,219,476 | 0 | null | To implement a linked list in R, you can use the R6 library. Here is an example of how to define a ListNode class using R6:
```
library(R6)
ListNode <- R6Class("ListNode",
public = list(val = NULL, next_node = NULL,
initialize = function(val, next_node = NULL) {
... | null | CC BY-SA 4.0 | null | 2023-03-04T14:57:24.477 | 2023-03-04T14:57:24.477 | null | null | 21,331,901 | null |
75,636,491 | 2 | null | 75,636,346 | -2 | null | I seem to have found a solution using `SetWindowLongPtr` directly after the creation of a window, before calling `ShowWindow`. Does anyone know what the cause of this strangeness could be? It seems like hackery not being able to provide a style to `CreateWindow` and having the window display as requested.
EDIT: The iss... | null | CC BY-SA 4.0 | null | 2023-03-04T14:59:48.833 | 2023-03-04T20:51:06.903 | 2023-03-04T20:51:06.903 | 21,152,180 | 21,152,180 | null |
75,636,488 | 1 | null | null | 0 | 13 | I am trying to create an ASP.NET Core 6 Web API and I got a problem:
[](https://i.stack.imgur.com/U03Z0.png)
As you can see, I have my models and database context in a `models` folder, and in `controllers`, I was trying to separate the client and the admin controllers. But I am kinda stuck here, I am thinking of using ... | ASP.NET Core 6 Web API : separate admin and client controllers | CC BY-SA 4.0 | null | 2023-03-04T14:59:30.713 | 2023-03-04T15:10:29.773 | 2023-03-04T15:10:29.773 | 13,302 | 16,482,462 | [
"asp.net-core-webapi",
"asp.net-core-6.0"
] |
75,636,494 | 1 | null | null | 0 | 11 | Are there any limitations of Bigquery when compared to spark in terms of performing complex calculations ? also would like to know the type of operations that are not performed within BQ SQl and that can be performed in spark .
| Bigquery Vs dataproc (spark) | CC BY-SA 4.0 | null | 2023-03-04T15:00:28.120 | 2023-03-04T15:36:29.163 | 2023-03-04T15:36:29.163 | 21,235,520 | 21,235,520 | [
"apache-spark",
"pyspark",
"google-bigquery",
"dataproc"
] |
75,636,495 | 2 | null | 75,636,357 | 0 | null | You can use `Window.postMessage()` and please refer to this page for more help
> [https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)
| null | CC BY-SA 4.0 | null | 2023-03-04T15:00:35.777 | 2023-03-04T15:00:35.777 | null | null | 21,332,060 | null |
75,636,496 | 2 | null | 75,451,464 | 0 | null | In this case, you can try two things.
1: remove output-format=2 from your gamestreamer pipeline. It should look like this
```
gst-launch-1.0 -v -e rtspsrc protocols=tcp location=rtsp://XXX.XXX.XXX.XXX:XXXX/user=USER_password=PASSWORD_channel=1_stream=0.sdp?real_stream ! queue ! rtph264depay ! h264parse config-interval=... | null | CC BY-SA 4.0 | null | 2023-03-04T15:00:48.383 | 2023-03-04T15:00:48.383 | null | null | 16,967,714 | null |
75,636,498 | 2 | null | 75,636,167 | 1 | null | You can provide a display value for the empty select option in the relevant HTML - for example, you can set the text to `Select a value`:
```
var select = $('<select><option value="">Select a value</option></select>')
```
Make sure you leave the option's value as an empty string `value=""` - because that is what DataT... | null | CC BY-SA 4.0 | null | 2023-03-04T15:00:57.817 | 2023-03-04T15:00:57.817 | null | null | 12,567,365 | null |
75,636,489 | 1 | null | null | 0 | 35 | I run the code to make two graphs in one dimension(i.e. secondary y axis) in R, but the geom_line graph does not shown.
I want to make a secondary y axis graph in R by combining geom_line and geom_bar.
I want these two graphs(geom_line and geom_bar) to be represented at once through secondary yaxis, but after I run the... | How can I solve this error to make an secondary y axis in R? | CC BY-SA 4.0 | null | 2023-03-04T14:59:39.497 | 2023-03-04T15:05:35.580 | 2023-03-04T15:05:35.580 | 12,500,315 | 21,331,985 | [
"r",
"ggplot2",
"axis",
"geom-bar"
] |
75,636,502 | 2 | null | 65,033,465 | 0 | null | It is so simple, do not use mapDispatchToProps function. Just create a variable and pass useParams into that variable and invoke as a function.
```
const mapStateToProps = (state) => {
const title = useParams;
const { user } = title();
return {
card: state.cards.find(card => card.title === user)
}
}
`... | null | CC BY-SA 4.0 | null | 2023-03-04T15:01:28.997 | 2023-03-04T15:01:28.997 | null | null | 7,490,109 | null |
75,636,442 | 1 | null | null | 0 | 10 | trying to make an app for my uni project but when trying to install the navigation package I get a lot of errors and I'm unsure of what I've done wrong, going to copy and paste them below, any help is appreciated.
The line i typed to result in this was "npm install react-navigation/native"
npm ERR! code 1
npm ERR! git ... | Lots of errors trying to install react native packages | CC BY-SA 4.0 | null | 2023-03-04T14:52:03.813 | 2023-03-04T16:35:23.837 | null | null | 13,143,142 | [
"react-native",
"installation",
"npm-install"
] |
75,636,505 | 2 | null | 75,635,053 | 0 | null | Finally I got some solution :
<%
String shareRule = (String) session.getAttribute("shareRule");
JSONObject shareRuleJson = new JSONObject(shareRule);
String tdsFlag = shareRuleJson.get("tdsFlag").toString();
%>
value="<%=tdsFlag%>"
Same, if user want to iterate json array then he will do the same for json array case al... | null | CC BY-SA 4.0 | null | 2023-03-04T15:02:14.207 | 2023-03-04T15:02:14.207 | null | null | 20,117,019 | null |
75,636,497 | 2 | null | 46,633,938 | 0 | null | To run the main function in your run.py file from the command line, you'll need to set the entry_points option in your setup.py file. This can be done by adding the following code:
```
setup(
OTHER_SETTINGS,
entry_points={"console_scripts": ["youcmd= wallpaper.run:main"]},
)
```
This code creates an executable... | null | CC BY-SA 4.0 | null | 2023-03-04T15:00:57.763 | 2023-03-04T15:00:57.763 | null | null | 3,552,975 | null |
75,636,504 | 2 | null | 3,655,554 | 0 | null | I was trying to achieve the same, and I've tried all suggested answers. Unfortunately, the answer given by `pydub` creator wasn't too descriptive and I struggled to find an example, and the other is eventually outputting a file with a high pitch.
Eventually, the easiest thing that worked for me was indeed to use `pydub... | null | CC BY-SA 4.0 | null | 2023-03-04T15:01:50.473 | 2023-03-04T15:01:50.473 | null | null | 4,317,688 | null |
75,636,501 | 1 | null | null | 0 | 8 | I'm using clion + mingw for ESP32 development. When reloading cmake I get a python error 'SyntaxError: invalid syntax' for:
```
info(f'Downloading {url}')
```
I've set path variable to espressif paths into PATH env variable:
```
C:\Users\npelov\.espressif\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin;C... | Set python when using esp_idf with clion and mingw | CC BY-SA 4.0 | null | 2023-03-04T15:01:14.803 | 2023-03-04T15:30:14.347 | 2023-03-04T15:30:14.347 | 676,439 | 676,439 | [
"python",
"mingw",
"clion",
"esp32",
"espressif-idf"
] |
75,636,508 | 1 | null | null | 0 | 5 | I am using IntelliJ IDEA Community Edition, for a Java project. There are several modules in the project. Each module has dependencies listed in the Dependencies tab of the Project Settings. It turns out that many of the modules rely on a jar file that I add to the dependencies list, but that I have to change the order... | IntelliJ IDEA Java Project Settings Dependencies Jar File Order lost on Restart | CC BY-SA 4.0 | null | 2023-03-04T15:02:37.503 | 2023-03-04T15:02:37.503 | null | null | 3,465,795 | [
"intellij-idea",
"module",
"jar",
"dependencies"
] |
75,636,503 | 1 | null | null | 1 | 24 | Sometimes I have a typo in a bash command line like in
```
> ls foo.cö
ls: cannot access 'foo.c'$'\303\266': No such file or directory
```
What I am doing then is to type `<up>` to get that command line from the history and edit it, i.e. remove the `ö` by typing a backspace. This deletes the `ö` but I am getting:
```... | bash uses wrong character length for multi-byte characters | CC BY-SA 4.0 | null | 2023-03-04T15:01:34.987 | 2023-03-04T15:01:34.987 | null | null | 1,556,746 | [
"bash",
"character-encoding"
] |
75,636,514 | 1 | null | null | 0 | 5 | I'm trying to request a certificates for my Node Solid Server running on a docker image using certbot to enable HTTPS. Because right now my Node Solid Server is running at localhost:8443 but is not secure. I'm following the instructions that is shown at
[https://certbot.eff.org/instructions?ws=other&os=windows](https:/... | Requesting Certificates on my Node Solid Server running on docker image | CC BY-SA 4.0 | null | 2023-03-04T15:03:26.713 | 2023-03-04T15:03:26.713 | null | null | 12,762,890 | [
"docker",
"https",
"ssl-certificate",
"config",
"certbot"
] |
75,636,507 | 2 | null | 75,630,693 | 0 | null | The problem you're facing is that when the amount property of a product item in your RecyclerView changes, the price per unit is updated, but the total price is not updated. To fix this, you need to observe changes to the amount of property of each item in the list and update the total price accordingly.
Here's an exam... | null | CC BY-SA 4.0 | null | 2023-03-04T15:02:26.443 | 2023-03-04T15:02:26.443 | null | null | 15,424,264 | null |
75,636,515 | 2 | null | 75,636,474 | 2 | null | As Bergi pointed out in the comments, the `data-pointer` attribute on your element is a string, not a number. Just convert it to a number first:
```
$('#ex').click(function() {
let pointer = parseInt($(this).attr('data-pointer'));
$(this).attr('data-pointer', pointer + 8);
console.log($(this).attr('data-pointe... | null | CC BY-SA 4.0 | null | 2023-03-04T15:03:34.267 | 2023-03-04T15:03:34.267 | null | null | 13,376,511 | null |
75,636,518 | 1 | null | null | -4 | 14 | ```
$ pip install python_speech_features
Collecting python_speech_features
Using cached python_speech_features-0.6.tar.gz (5.6 kB)
ERROR: Error [WinError 225] Operation did not complete successfully because the file contains a virus or potentially unwanted software while executing command python setup.py egg_info
Prepa... | pip install python_speech_features "OSError: [WinError 225] ... the file contains a virus or potentially unwanted software" | CC BY-SA 4.0 | null | 2023-03-04T15:04:28.417 | 2023-03-05T03:56:17.043 | 2023-03-05T03:56:17.043 | 20,103,413 | 12,729,710 | [
"python"
] |
75,636,516 | 1 | null | null | 0 | 12 | I am trying to implement the normalized least mean square filter in Matlab Function in Simulink as shown below:
[](https://i.stack.imgur.com/fBkI7.png)
The code inside the Matlab Function is as follows:
```
function b = lms_update(ref,cor,adapt,N,mu)
% ref = reference signal, noise signal itself, for filter to produce
... | Normalized LMS Filtering in Matlab Function in Simulink | CC BY-SA 4.0 | null | 2023-03-04T15:03:34.173 | 2023-03-05T00:30:23.350 | 2023-03-05T00:30:23.350 | 5,274,458 | 5,274,458 | [
"matlab",
"filter",
"simulink",
"least-squares",
"noise-reduction"
] |
75,636,511 | 1 | null | null | 0 | 6 | I have a Rutler NIF that is working, most of the time, but I'm getting a weird intermittant(unpredictable, but not infrequent) ArgumentError failures that I can neither find the cause for, nor figure out how to properly debug.
I create the ResourceArc from a GenServer that holds the ref in its state, and then I use Poo... | Rustler - ResourceArc getting intermittent ArgumentError | CC BY-SA 4.0 | null | 2023-03-04T15:03:07.760 | 2023-03-04T15:03:07.760 | null | null | 3,968,048 | [
"elixir"
] |
75,636,512 | 1 | null | null | 0 | 97 | I have a simple React app that adds a marker when the map is clicked on. And when a marker is clicked on it should be removed.
There seems to be a bug somewhere though as clicking to add markers, and then removing some doesn't work as expeted most of the time.
Here's what I have so far.
```
import * as React from 'reac... | Add/remove Google maps markers | CC BY-SA 4.0 | null | 2023-03-04T15:03:09.893 | 2023-03-04T18:39:58.357 | null | null | 471,784 | [
"reactjs",
"google-maps",
"google-maps-api-3",
"google-maps-markers"
] |
75,636,519 | 2 | null | 75,636,190 | 1 | null | You can report the issue to the nvim bugtracker on GitHub: [https://github.com/neovim/neovim/issues](https://github.com/neovim/neovim/issues)
I have nvim 0.8.3 installed on Linux, but running `nvim` and running `:bwipeout` immediately does not produce errors for me, so it is better if you specify more details about you... | null | CC BY-SA 4.0 | null | 2023-03-04T15:04:44.687 | 2023-03-04T15:04:44.687 | null | null | 21,313,424 | null |
75,636,522 | 2 | null | 67,755,217 | 0 | null | > Is Azure detecting the EXPOSE command in my docker file? Or what is it that makes this work?
To answer this question directly, I believe the answer is yes.
Unfortunately I have not found any documentation from Microsoft that can confirm this but after investigating the issue myself I found that the `docker run` comma... | null | CC BY-SA 4.0 | null | 2023-03-04T15:05:36.817 | 2023-03-04T15:05:36.817 | null | null | 2,551,008 | null |
75,636,524 | 1 | null | null | 0 | 7 | The code must accept url and send a photo of the qr code:
```
@dp.message_handler()
async def echo_message(msg: types.Message):
pic=qrcode.make(msg.text)
pic.save('qrcode.png')
await bot.send_photo(msg.from_user.id, 'qrcode.png')
```
| Telegram BOT cant send photo | CC BY-SA 4.0 | null | 2023-03-04T15:05:41.413 | 2023-03-04T15:05:41.413 | null | null | 21,332,049 | [
"python",
"telegram-bot"
] |
75,636,523 | 2 | null | 75,607,677 | 0 | null | I solved the problem.
I replaced the following line, to start up the server:
```
app.run(debug=True)
```
by:
```
from flask_socketio import SocketIO
socketio = SocketIO(app)
socketio.run(app, debug=True)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T15:05:39.737 | 2023-03-04T15:05:39.737 | null | null | 21,313,695 | null |
75,636,517 | 2 | null | 75,635,967 | 0 | null | On the polars discord you explained that you also normalize the result by subtracting the mean, and also shared the full dataset. Below I include how you normalize it. I then include a MWE of it, with 5 columns and 5 rows.
```
import pandas as pd
user_game_df = pd.read_csv("sample.csv")
user_game_df = user_game_df.set... | null | CC BY-SA 4.0 | null | 2023-03-04T15:03:53.710 | 2023-03-04T15:03:53.710 | null | null | 1,018,861 | null |
75,636,521 | 2 | null | 72,862,078 | 0 | null | The errors you are seeing are TypeScript type errors, indicating that the types of some of the arguments and return values in the `transform` function do not match the expected types.
The first error message, `TS2345: Argument of type '(index: number) => string' is not assignable to parameter of type '(i: N) => T'.`, i... | null | CC BY-SA 4.0 | null | 2023-03-04T15:05:05.390 | 2023-03-04T15:05:05.390 | null | null | 10,798,274 | null |
75,636,526 | 1 | null | null | 0 | 17 | I cannot import databinding to my project. I enabled databinding and imported the databinding class in my kotlin code but I get unresolved error.
I verified my build.gradle (:app) file and there is no issue there and I had put the correct statements that enable databinding and the build is successful. I still got the e... | Problem in import statement of databinding | CC BY-SA 4.0 | null | 2023-03-04T15:05:48.923 | 2023-03-04T15:05:48.923 | null | null | 21,331,952 | [
"android",
"kotlin",
"mobile",
"android-databinding"
] |
75,636,528 | 2 | null | 75,631,455 | 0 | null | According to the [Scapy DHCP module](https://github.com/secdev/scapy/blob/c54ca02ccacaee9257e9fd19741391743b543b44/scapy/layers/dhcp.py#L672) (BOOTP Class),
the parameter name is `name_server`,
and not `domain_name_server`.
[](https://i.stack.imgur.com/qURnK.png)
| null | CC BY-SA 4.0 | null | 2023-03-04T15:06:03.130 | 2023-03-04T15:06:03.130 | null | null | 4,935,162 | null |
75,636,520 | 1 | null | null | 0 | 5 | I am using Mapboxgl style to show my map and I need to set on features on a layer based on their . For instance a derived and briefed tiny example from a layer below:
`{ "type": "FeatureCollection", "name": "water", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "... | Showing features of water-bounds based on area size attribute Mapboxgl | CC BY-SA 4.0 | null | 2023-03-04T15:04:50.350 | 2023-03-04T15:04:50.350 | null | null | 20,143,989 | [
"zooming",
"mapbox-gl-js",
"mapbox-gl",
"vector-graphics",
"maplibre-gl"
] |
75,636,530 | 2 | null | 7,802,822 | 0 | null | this is a variant of the jaolho's solution, optimized with bitwise operations for better performance
```
public static List<List<T>> GetAllCombinations<T>(this List<T> list)
{
int comboCount = (1 << list.Count) - 1;
List<List<T>> result = new List<List<T>>(comboCount);
for (int i = 1; i <= comboCount; i++)
... | null | CC BY-SA 4.0 | null | 2023-03-04T15:06:22.187 | 2023-03-04T15:06:22.187 | null | null | 1,396,557 | null |
75,636,532 | 1 | 75,636,833 | null | 1 | 24 | I have a MySQL function that retrieves the stock for each customer. The function was working great, but recently I had the need to add a third parameter to my function.
:
```
CREATE FUNCTION getStock (productId INT, customerId INT) RETURNS INT(11)
BEGIN
DECLARE qty INT(11) DEFAULT 0;
IF (customerId = 0)
... | MySQL function - how to apply multiple conditions to the select query | CC BY-SA 4.0 | null | 2023-03-04T15:06:30.523 | 2023-03-04T15:57:22.467 | null | null | 3,355,243 | [
"mysql"
] |
75,636,533 | 1 | 75,636,602 | null | 0 | 11 | ```
class RegisterAPIView(APIView):
def post(self, request, format=None):
email = request.data.get('email')
password = request.data.get('password')
# Create user with Firebase
try:
user = auth.create_user(email=email, password=password)
except auth.EmailA... | How can I approve user to register (change the custom claim) in the firebase console? | CC BY-SA 4.0 | null | 2023-03-04T15:06:31.117 | 2023-03-04T15:18:03.417 | 2023-03-04T15:15:56.920 | 209,103 | 16,708,111 | [
"django-rest-framework",
"firebase-authentication",
"firebase-console"
] |
75,636,534 | 1 | null | null | 0 | 9 | hope you're doing well. I'm creating a traveling website for a client. when im adding a new voyage there is some custom fields. let's just focus on departure_time and return_time. one for the date the voyage will be, the other for the date when the voyage end. i want to do a check:
the reutrn_time has to be after the d... | comparing two date picker fields (advanced custom fields) before saving or updating the post | CC BY-SA 4.0 | null | 2023-03-04T15:06:44.020 | 2023-03-04T15:06:44.020 | null | null | 18,233,885 | [
"php",
"wordpress",
"advanced-custom-fields",
"wordpress-gutenberg"
] |
75,636,535 | 2 | null | 75,618,662 | 0 | null | ```
manager_ids = qs.filter(manager_id__isnull=False).values_list('manager_id', flat=True)
Manager.objects.filter(id__in=manager_ids)
```
This should gives you a clean Manager queryset for any Employee queryset
| null | CC BY-SA 4.0 | null | 2023-03-04T15:06:44.383 | 2023-03-04T15:06:44.383 | null | null | 20,263,044 | null |
75,636,527 | 1 | null | null | 0 | 12 | Without going into details, right now I have two entities: Invoice and Product. Is it worth creating a new CatItem entity with literally one property "Quantity" (and relationship properties between tables), if the total number of records in the table is not reduced, but a new table is added (if this judgment is wrong, ... | why make a new "CartItem" entity for the cart if the number of entries in the database does not change solely for readability? | CC BY-SA 4.0 | null | 2023-03-04T15:05:55.103 | 2023-03-05T03:20:37.477 | null | null | 21,325,330 | [
"c#",
"asp.net-web-api",
"shopping-cart"
] |
75,636,513 | 1 | null | null | 0 | 18 | Working with Apache's log4net and having some interesting issues.
Here is my log4net.config, worth noting that I have multiple projects in the same solution, so this is placed in a shared project, with `Build Action` "Embedded resource" and `Copy to Output Directory` "Copy always" (And it is added to the output directo... | log4net Failed to find configuration section 'log4net' in the application's .config file | CC BY-SA 4.0 | null | 2023-03-04T15:03:17.273 | 2023-03-05T05:28:45.810 | 2023-03-05T05:28:45.810 | 14,479,601 | 14,479,601 | [
"logging",
"log4net"
] |
75,636,536 | 2 | null | 19,743,228 | 0 | null | Vanilla JS:
```
var clicked = false, clickY, clickX;
document.onmousemove = (e) => {
clicked && updateScrollPos(e);
}
document.onmousedown = (e) => {
clicked = true;
clickY = e.pageY;
clickX = e.pageX;
document.querySelector("body").style.userSelect = "none";
}
document.onmouseup = (e) => {
clicked = false;... | null | CC BY-SA 4.0 | null | 2023-03-04T15:06:51.513 | 2023-03-04T15:06:51.513 | null | null | 17,518,287 | null |
75,636,539 | 2 | null | 75,635,879 | 0 | null | i think you need to enable index for your query
please check console of your project you might see firebase error message
followed by link to firebase console
take you to this page waiting to enable index for the query you entered
[](https://i.stack.imgur.com/TMfKd.png)
| null | CC BY-SA 4.0 | null | 2023-03-04T15:07:21.393 | 2023-03-04T15:07:21.393 | null | null | 13,987,405 | null |
75,636,540 | 2 | null | 71,387,774 | 0 | null | I think, if you want to use dict to save user's state, you can create another one dict in the main dict, where user_id = key, and a new dict = value.
I mean something like that:
```
STATES = {}
user_id = 123
STATES[user_id] = {}
STATES[user_id]['name'] = name
STATES[user_id]['action'] = action_name
```
Or you also ... | null | CC BY-SA 4.0 | null | 2023-03-04T15:07:28.323 | 2023-03-04T15:07:28.323 | null | null | 20,494,832 | null |
75,636,543 | 2 | null | 75,625,000 | 0 | null | You can check the keyability of the channel with getAttr; if it's not keyable, it won't be in the channelBox:
`cmds.getAttr(node + ".scaleX", keyable=True)`
| null | CC BY-SA 4.0 | null | 2023-03-04T15:07:52.373 | 2023-03-04T15:07:52.373 | null | null | 955,926 | null |
75,636,546 | 2 | null | 75,624,533 | 0 | null | I have same issue yesterday however I found a solution an hour ago change from "editor.bracketPairColorization.enabled": true, to "editor.bracketPairColorization.enabled": false in vscode setting then go open setting(JSON) the red greater than or less than will be back to white color
| null | CC BY-SA 4.0 | null | 2023-03-04T15:08:04.217 | 2023-03-04T15:08:04.217 | null | null | 19,979,456 | null |
75,636,538 | 1 | null | null | 0 | 33 |
### Description:
Is it possible to find average by value of key node in a semipath of BST knowing only its root, length and the sum of keys of the last nodes?
### Example:
```
BST:
0 <- Given root <------ 0
\
5
/ \
2 6
/ \
1 7 + = 10 - Given Sum... | Find average by key value node in a semipath of BST | CC BY-SA 4.0 | null | 2023-03-04T15:07:12.127 | 2023-03-04T17:05:40.007 | 2023-03-04T17:05:40.007 | 18,604,054 | 18,604,054 | [
"c++",
"algorithm",
"binary-search-tree",
"average"
] |
75,636,499 | 2 | null | 75,632,287 | 0 | null | What is your version of `k8s` ?
Port 8080 is not supported in higher versions, you need to use 6443.
`kubectl` version and `k8s` version
Are kubelet and kube-apiserver compatible ?
[https://kubernetes.io/releases/version-skew-policy/#kubelet](https://kubernetes.io/releases/version-skew-policy/#kubelet)
> kubelet must ... | null | CC BY-SA 4.0 | null | 2023-03-04T15:01:04.250 | 2023-03-04T15:01:04.250 | null | null | 20,209,252 | null |
75,636,525 | 1 | null | null | -1 | 29 | I am trying to upload an image in .NET core, but I it gives me an error while the stream copy to another stream to save the data. When it runs as local server, it works perfectly and I upload all execution files to Linux (Ubuntu) server, then the following error has displayed on the console window. Server location is i... | Upload an image in .net Core | CC BY-SA 4.0 | null | 2023-03-04T15:05:46.540 | 2023-03-05T04:44:00.703 | 2023-03-05T01:53:22.633 | 13,026,410 | 13,026,410 | [
"c#",
".net"
] |
75,636,541 | 2 | null | 75,636,288 | 2 | null | The JavaScript exception mechanism consists of the `throw` statement:
```
throw expression;
```
Any value, , can be thrown. The other part is the `try catch` structure:
```
try {
arbitrary code
}
catch (value) {
handler code for thrown value
}
```
The thing about `try` and `catch` is that it handles exceptions th... | null | CC BY-SA 4.0 | null | 2023-03-04T15:07:29.470 | 2023-03-04T15:07:29.470 | null | null | 182,668 | null |
75,636,551 | 1 | null | null | 0 | 4 | I am trying to learn arduino by converting mblock codes into arduino ide. I encountered the function "MeDCMotor motor_9(9)",which was imported from the library <MeMCore.h> ,and have failed to find explanations of how this function works. How does this work? or, where can i find the introduction of this function?
Thank ... | How does the function "MeDCMotor motor_9(9)(imported from <MeMCore.h> library)" work? | CC BY-SA 4.0 | null | 2023-03-04T15:08:37.260 | 2023-03-04T15:08:37.260 | null | null | 21,331,962 | [
"arduino-uno"
] |
75,636,550 | 1 | null | null | -2 | 32 | I was wondering lately if I can use any of the Regex function to find some word in another, for example:
word = "BCDAABCDBBDABB"
and now in this word i have to find word which starts with "AA" and ends with "BB". Is it even possible?
I had been trying with:
word = "BCDAABCDBBDABB"
re.search("AA.*BB", word) and my resul... | Regex search function | CC BY-SA 4.0 | null | 2023-03-04T15:08:37.113 | 2023-03-04T22:35:30.953 | null | null | 21,332,047 | [
"python",
"regex"
] |
75,636,544 | 2 | null | 75,622,333 | 0 | null | I think that the problem you are having is that the response has not fully completed when you are trying to parse it, or the internal buffering is still waiting for more data if it does not know the size being returned.
I will usually fix this myself by using a JSON object to fetch the response with, as it uses it's in... | null | CC BY-SA 4.0 | null | 2023-03-04T15:07:53.887 | 2023-03-04T15:23:26.400 | 2023-03-04T15:23:26.400 | 15,848,400 | 15,848,400 | null |
75,636,531 | 2 | null | 75,633,835 | 0 | null | This will provide a functional starting point for you. I added a few additional fields you probably want. Of course you can take the same concept and break them out into separate named procedures with parameter lists if you prefer. This is simply the most compact way to demonstrate how to do it. Also I am inserting int... | null | CC BY-SA 4.0 | null | 2023-03-04T15:06:28.937 | 2023-03-04T15:15:22.917 | 2023-03-04T15:15:22.917 | 20,542,862 | 20,542,862 | null |
75,636,548 | 1 | null | null | -1 | 40 | I have the following code, which generates the following graph
```
plt.figure(figsize=(9,5))
plt.title("Title", fontsize=16)
plt.xlabel("X", fontsize=12)
plt.ylabel("Y", fontsize=12)
plt.xlim(0, 300)
plt.ylim(0, 300)
plt.plot(x, color = 'black')
plt.plot(y, color = 'red')
plt.show()
```
[](https://i.stack.imgur.com/dt... | Changing values on X-axis | CC BY-SA 4.0 | null | 2023-03-04T15:08:11.753 | 2023-03-04T19:33:34.923 | 2023-03-04T16:31:59.093 | 7,758,804 | 16,470,520 | [
"python",
"matplotlib"
] |
75,636,549 | 1 | null | null | -1 | 21 | Been running some testing, and I just wanted to clarify the differences between FileVault and APFS encryption.
So I wiped my disk and chose APFS encrypted as my drive format. Set a password. I then installed macOS Ventura. During the setup process, after logging into iCloud, I unchecked the FileVault option. When I loo... | FileVault vs. APFS encryption | CC BY-SA 4.0 | null | 2023-03-04T15:08:15.187 | 2023-03-04T15:08:15.187 | null | null | 14,566,748 | [
"macos",
"encryption",
"macos-ventura",
"filevault"
] |
75,636,555 | 1 | null | null | 0 | 17 | ```
DECLARE
v_employee_name employees.first_name%TYPE;
v_employee_id employees.employee_id%TYPE := 9999;
-- define user-defined exception
e_no_employee EXCEPTION;
BEGIN
SELECT first_name INTO v_employee_name FROM employees WHERE employee_id = v_employee_id;
IF v_employee_name IS NULL THEN
-- raise u... | Ho to make User-defined exceptions work in PL/SQL | CC BY-SA 4.0 | null | 2023-03-04T15:09:10.823 | 2023-03-04T15:16:03.303 | 2023-03-04T15:15:39.113 | 429,100 | 19,252,428 | [
"oracle",
"plsql",
"plsqldeveloper"
] |
75,636,552 | 1 | 75,638,197 | null | 0 | 23 | In the old SDK Azure Table you could create FilterConditions like the following
```
var partitionFilter = TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, symbolRoot);
var startDateFilter =
TableQuery.GenerateFilterConditionForDate("TradeDate", QueryComparisons.GreaterThanOrEqual, ... | Azure.Data.Tables QueryAsync filtering erring with multiple filter conditions | CC BY-SA 4.0 | null | 2023-03-04T15:08:40.207 | 2023-03-04T19:35:06.620 | 2023-03-04T19:10:20.390 | 959,663 | 959,663 | [
"c#",
"azure",
"azure-table-storage",
"azure-tablequery"
] |
75,636,553 | 1 | null | null | 0 | 11 | I'm trying to use the Blossom algorithm in JGraphT to create a pairing between a set of teams using costs based on whether they have already played each other and what their relative point difference is (i.e., Swiss-like). But in every 5000 or so instances, I get what appears to be an infinite loop (or at least, someth... | Infinite Loop in Blossom/KolmogorovWeightedPerfectMatching algorithm | CC BY-SA 4.0 | null | 2023-03-04T15:08:54.090 | 2023-03-04T18:19:29.193 | 2023-03-04T18:19:29.193 | 3,154,327 | 3,154,327 | [
"kotlin",
"matching",
"jgrapht"
] |