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,115 | 2 | null | 75,632,878 | 0 | null | After I revert back Jenkins to previous version and it came up ok, still don't know the 2.375.3 verion faile.
yum install jenkins-2.346.3
| null | CC BY-SA 4.0 | null | 2023-03-04T13:58:01.390 | 2023-03-04T13:58:01.390 | null | null | 21,235,601 | null |
75,636,118 | 2 | null | 75,636,042 | 0 | null | It works for me, are you sure that this method is called after you write something down? If you are using WindowsForms, you have to go to your designer, click on the textbox for which you want to apply this method, go to right, click on the lighting symbol and choose your method for TextChanged.
| null | CC BY-SA 4.0 | null | 2023-03-04T13:58:27.160 | 2023-03-04T13:58:27.160 | null | null | 16,832,655 | null |
75,636,111 | 1 | null | null | 0 | 19 | Hi I'm looking for a program to find the maxima of multiple bands in a plot, yet I've found away to only localize the biggest maximum, I want to determine the coordinates of the second maximum.[](https://i.stack.imgur.com/K7L4N.png)
here is my script
```
`import numpy as np
import matplotlib.pyplot as plt
a2=np.loadtx... | how to find coordinats x, y of multiple maxima with python? | CC BY-SA 4.0 | null | 2023-03-04T13:57:14.127 | 2023-03-04T15:53:06.663 | null | null | 15,225,851 | [
"python",
"matplotlib"
] |
75,636,114 | 2 | null | 75,634,570 | 1 | null | When the variable template `fun_v` is unconstrained, the two are equivalent.
However, `fun_v` may be constrained, in which case it cannot be used in the function, nor as the condition of `if constexpr`, since it will result in a hard error when `T` does not satisfy the constraint.
`requires { typename enable_if_t<fun_v... | null | CC BY-SA 4.0 | null | 2023-03-04T13:57:43.250 | 2023-03-04T16:06:34.890 | 2023-03-04T16:06:34.890 | 11,638,718 | 11,638,718 | null |
75,636,119 | 2 | null | 75,633,751 | 0 | null | You have to figure out the postion of the words:
```
import pytesseract
from pytesseract import Output
import cv2
pytesseract.pytesseract.tesseract_cmd=r'C:\Program Files\Tesseract-OCR\tesseract.exe'
img = cv2.imread('Text.png')
d = pytesseract.image_to_data(img, output_type=Output.DICT)
#print(d.keys())
overlay = ... | null | CC BY-SA 4.0 | null | 2023-03-04T13:58:34.977 | 2023-03-04T13:58:34.977 | null | null | 12,621,346 | null |
75,636,109 | 2 | null | 75,582,420 | 0 | null | My case was a bit more tedious, but with the given instructions from Ruble I was able to update everything smoothly. In my case there was only one more model that was including the Dog class.
Owner model:
```
class Owner extends Equatable {
final List<Dog> dogs;
const Owner({required this.dogs});
Owner copyWi... | null | CC BY-SA 4.0 | null | 2023-03-04T13:56:12.217 | 2023-03-04T13:56:12.217 | null | null | 11,118,209 | null |
75,636,116 | 1 | null | null | 0 | 21 | I tried to parse the USD rate from [this site](https://qiwi.com/payment/exchange) but somehow I can't.
[](https://i.stack.imgur.com/LdfRy.png)
When I tried to parse the information by the usual way, I ended up with "None". When I went to the site, the information was there, but when I parsed it, it was missing. I guess... | Cannot parse the client-side rendering website | CC BY-SA 4.0 | null | 2023-03-04T13:58:02.540 | 2023-03-04T15:16:30.267 | 2023-03-04T15:16:30.267 | 20,503,414 | 18,449,104 | [
"python",
"parsing",
"beautifulsoup",
"client-side-rendering"
] |
75,636,112 | 1 | null | null | 0 | 18 | I'm just a beginner with Google Apps Script. I need help with a code that generates a dialog box with some text, a drop down that takes values from array named "arrayOfNames" and a button, clicking on this button would return the selected value from the drop down in the variable "tempString".
```
<!DOCTYPE html>
<html... | A modal dialog box with some text, a drop down that takes values from an array and a button using Google Apps Script | CC BY-SA 4.0 | null | 2023-03-04T13:57:16.850 | 2023-03-05T00:10:56.543 | 2023-03-04T14:05:50.853 | 13,634,029 | 13,634,029 | [
"html",
"google-apps-script",
"dialog"
] |
75,636,123 | 1 | null | null | -4 | 17 | why when I have elements nested in a container and a hover event is set on them, hovering over text beyond the container only works? When I hover over a button that is completely inside a container, the event doesn't work.
| An event that is performed outside of the container | CC BY-SA 4.0 | null | 2023-03-04T13:59:12.477 | 2023-03-04T13:59:12.477 | null | null | 20,983,470 | [
"javascript",
"html"
] |
75,636,122 | 1 | null | null | 0 | 10 | I have a simple WebApi app managing Gym visits - workouts, exercises, weights etc. Two entities of interest here are User (visitor) and Workout. UsersController and WorkoutsController are doing their typical CRUD operations and adding HATEOAS links to each resource in the response. On top of that UsersController can pr... | HATEOAS - Get links for resources not associated with current controller | CC BY-SA 4.0 | null | 2023-03-04T13:59:10.480 | 2023-03-04T13:59:10.480 | null | null | 4,691,662 | [
"asp.net-core",
"hateoas"
] |
75,636,120 | 1 | null | null | 0 | 16 | I would like to detect NullDereference error by adding a _Nullable to my function.
I wrote my_function(); It is a function will lead to NullDerenference error if the ptr is NULL. To give a hint to the clang analyzer, I use _Nullable ptr as my function argument.
```
int my_function(int * _Nullable ptr)
{
printf("read... | How to get warning about NullDereference with clang analyzer if the a _Nullable argument is used in the function | CC BY-SA 4.0 | null | 2023-03-04T13:58:46.437 | 2023-03-05T01:24:05.580 | 2023-03-05T01:24:05.580 | 240,041 | 240,041 | [
"objective-c",
"clang",
"static-analysis",
"clang-tidy",
"scan-build"
] |
75,636,124 | 1 | null | null | -1 | 19 | On one NIC I need an NSG rule to deny one port that is otherwise allowed on a subnet NSG, without duplicating all of the subnet NSG rules on the NIC NSG.
Here's an article on adding NSGs to both a NIC and subnet, but doesn't address my specific question: [https://learn.microsoft.com/en-us/azure/virtual-network/network-... | How to use NSG on NIC to deny access to some traffic that is allowed on subnet NSG | CC BY-SA 4.0 | null | 2023-03-04T13:59:19.647 | 2023-03-04T16:11:21.393 | 2023-03-04T16:11:21.393 | 7,091,316 | 7,091,316 | [
"azure",
"azure-virtual-network",
"subnet",
"nic",
"azure-nsg"
] |
75,636,128 | 1 | null | null | -2 | 15 | Is it possible to use a genetic algorithm to find optimal hyperparameters for e.g. neural networks in a binary classification problem? What should the example code look like for the Iris dataset?
| Using GA algorithm to find optimal hyperparameters in a binary classification problem | CC BY-SA 4.0 | null | 2023-03-04T13:59:31.220 | 2023-03-04T13:59:31.220 | null | null | 19,608,263 | [
"r",
"machine-learning",
"genetic-algorithm",
"hyperparameters",
"iris-dataset"
] |
75,636,086 | 1 | null | null | 1 | 14 | I want to create a testimonial slider that shows thumbnail of next slide's image on the next nav button and thumbnail of previous slide on the previous slide button.
I also have chevron icons on my nav buttons so i'd like to show the images of the author below the chevron icon. My concept is similar to this [stackoverf... | Struggling to add thumbnails in owlcarousel nav buttons for next and prev slide | CC BY-SA 4.0 | null | 2023-03-04T13:52:35.950 | 2023-03-04T13:58:37.080 | 2023-03-04T13:58:37.080 | 19,367,608 | 19,367,608 | [
"javascript",
"html",
"jquery",
"css",
"owl-carousel"
] |
75,636,121 | 1 | null | null | -1 | 25 | I have a code of HTML where i want to display photo which is uploaded by user.
i tried below mention code. to get it done in html. Please let me know if i have done any mistake in given code.
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">... | Not able to display photo in html | CC BY-SA 4.0 | null | 2023-03-04T13:58:50.507 | 2023-03-04T14:10:22.223 | 2023-03-04T14:10:22.223 | 5,641,669 | 21,231,705 | [
"php",
"html"
] |
75,636,126 | 1 | null | null | 0 | 14 | I am running a unit test using VS2019, C#. After I build my project errors show.
I am able to run my test from the last successful build, but I have no idea how to approach this. The command is coming from a prebuild batch file stored in the project.
```
Severity Code Description Project File Line Suppressi... | Visual studio is encountering an error with taskkill commands | CC BY-SA 4.0 | null | 2023-03-04T13:59:25.000 | 2023-03-04T18:39:37.810 | 2023-03-04T18:39:37.810 | 6,738,015 | 9,074,798 | [
"batch-file",
"webdriver",
"taskkill"
] |
75,636,134 | 2 | null | 75,636,068 | 0 | null | Executing both `minikube delete` and `minikube start` has solved the problem for me
| null | CC BY-SA 4.0 | null | 2023-03-04T14:00:15.777 | 2023-03-04T14:00:15.777 | null | null | 10,633,596 | null |
75,636,135 | 2 | null | 75,636,011 | 0 | null | Simply make a pair array and then sort it.
```
pair<int,int> pair_arr[n];
for (int i = 0; i < n; i++) {
pair_arr[i] = make_pair(arr[i], i);
}
sort(pair_arr, pair_arr + n);
```
| null | CC BY-SA 4.0 | null | 2023-03-04T14:00:23.633 | 2023-03-04T14:00:23.633 | null | null | 16,887,008 | null |
75,636,130 | 1 | null | null | 1 | 29 | What should I do to make `wrapper` return `string | number` type? The point is that I need to have `extract` as a generic function to automatically recognize `getter`'s result type. Now `wrapper` is considered to return `string` only. Thank you in advance.
```
function extract<M>(getter: () => M): M {
return getter()... | TypeScript: Union Is Cut By Generic | CC BY-SA 4.0 | null | 2023-03-04T13:59:38.627 | 2023-03-04T19:57:30.073 | null | null | 5,479,607 | [
"typescript",
"typescript-generics"
] |
75,636,129 | 2 | null | 74,227,371 | 0 | null | First, we write the ImageGetter class in this way:
```
open class CoilImageGetter(
private val textView: TextView,
private val imageLoader: ImageLoader = Coil.imageLoader(textView.context),
private val sourceModifier: ((source: String) -> String)? = null
) : Html.ImageGetter {
override fun getDrawable(... | null | CC BY-SA 4.0 | null | 2023-03-04T13:59:34.677 | 2023-03-04T13:59:34.677 | null | null | 14,998,961 | null |
75,636,127 | 2 | null | 75,635,358 | 3 | null | I am not sure if your code was correct, but even if it was, the chaotic movement you mentioned would still exist because the PNG image is not properly centered, as you can see below:
[](https://i.stack.imgur.com/SYWcu.jpg)
and of course a computer program would utilize the actual center of an image rather than the cent... | null | CC BY-SA 4.0 | null | 2023-03-04T13:59:30.583 | 2023-03-04T13:59:30.583 | null | null | 19,170,534 | null |
75,636,125 | 2 | null | 75,635,872 | 2 | null | Yes, this is expected. When you use `share`, you basically change the publisher into reference type semantics. There is just one instance of that `sub1`, and as soon as you subscribe to it with `sink`, it publishes the first element you prepended synchronously (`prepend` is synchronous), and as a result the subscribers... | null | CC BY-SA 4.0 | null | 2023-03-04T13:59:22.320 | 2023-03-04T14:14:43.707 | 2023-03-04T14:14:43.707 | 5,133,585 | 5,133,585 | null |
75,636,133 | 1 | null | null | 0 | 29 | I have so many condition and I want to check value and find the category of that range. I tried it and it working correctly. I thought there is a simple way to do solve this kind of logic problem in kotlin. I want to be easy this kind of problem for testing purpose and many more.
```
class Abc {
val list by lazy {... | How to simplify complex category condition in Kotlin | CC BY-SA 4.0 | null | 2023-03-04T13:59:55.617 | 2023-03-04T14:50:24.800 | null | null | 8,266,651 | [
"kotlin"
] |
75,636,137 | 2 | null | 75,343,456 | 0 | null | This is my solution:
```
class NetworkInterceptorProvider: DefaultInterceptorProvider {
override func interceptors<Operation: GraphQLOperation>(for operation: Operation) -> [ApolloInterceptor] {
var interceptors = super.interceptors(for: operation)
if checkIsAuthorizationRequired(for: op... | null | CC BY-SA 4.0 | null | 2023-03-04T14:00:45.363 | 2023-03-04T14:00:45.363 | null | null | 11,083,586 | null |
75,636,141 | 2 | null | 75,635,534 | 0 | null | Your balance attribute is not part of transaction group. So, when you call `model.addAttribute("balance", balance);` in loop, your previous value is overwritten. Add balance attribute to transaction group instead
| null | CC BY-SA 4.0 | null | 2023-03-04T14:01:00.607 | 2023-03-04T14:01:00.607 | null | null | 6,551,263 | null |
75,636,138 | 2 | null | 73,409,859 | 0 | null | first of all vcpkg lookup your installed vs versions here:
C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances
| null | CC BY-SA 4.0 | null | 2023-03-04T14:00:48.233 | 2023-03-04T14:00:48.233 | null | null | 1,005,462 | null |
75,636,142 | 2 | null | 73,113,597 | 0 | null | This answer may not directly related to this question.
But I used this line of code to make Compoundselect object iterable:
```
golden_set = db.session.execute(golden_set)
```
Where golden_set is union result.
| null | CC BY-SA 4.0 | null | 2023-03-04T14:01:15.293 | 2023-03-04T14:01:15.293 | null | null | 18,246,447 | null |
75,636,145 | 1 | null | null | 0 | 13 | I have set up a pipeline which works as follows: A message is published to a PubSub topic which has schema enforcement & then a PubSub-to-BigQuery subscriber sends the messages into a BQ table with the same schema.
I have a specific field called ingestion_time which is meant to indicate when rows are inserted into the ... | defaultValueExpression not working on PubSub-to-BigQuery subscription | CC BY-SA 4.0 | null | 2023-03-04T14:01:48.117 | 2023-03-04T14:54:11.127 | null | null | 7,228,100 | [
"sql",
"json",
"google-bigquery",
"etl",
"google-cloud-pubsub"
] |
75,636,139 | 1 | null | null | 0 | 36 | This is a basic Scala Tagless Final pattern implementation of a contrived login process. It doesn't compile because as it shows near the end 'No implicits found for parameters ...'
But if I remove `': Monad: LoginProcessAlgebra[F]'` from the program generic type that specific error goes away but the for-comprehension s... | Scala Tagless Final - Not compiling | CC BY-SA 4.0 | null | 2023-03-04T14:00:51.800 | 2023-03-04T17:51:24.077 | 2023-03-04T14:06:49.243 | 5,249,621 | 1,526,032 | [
"scala",
"functional-programming",
"scala-cats",
"tagless-final"
] |
75,636,144 | 2 | null | 75,634,466 | 1 | null | It turns out that I was mistaken about the location of `license-files` (I first saw it [in the "metadata" section](https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#metadata) on the doc); it must actually be in `[tool.setuptools]`.
The other data include issue was maybe a cache issue, it seems to w... | null | CC BY-SA 4.0 | null | 2023-03-04T14:01:40.080 | 2023-03-04T14:12:44.793 | 2023-03-04T14:12:44.793 | 5,962,321 | 5,962,321 | null |
75,636,032 | 1 | null | null | -1 | 37 | I have an online store in PHP mysql using PDO and it has a coupon system, at this moment I am almost about to finish the coupon system, that is, I am about to finish integrating the coupon system to the online store , but I have a problem, the following:
In the first one, I need that for each of the products there is ... | validate discount codes for each product and separate the products that will finally have a discount applied | CC BY-SA 4.0 | null | 2023-03-04T13:43:23.467 | 2023-03-05T02:03:43.077 | 2023-03-04T19:44:20.160 | 16,791,461 | 16,791,461 | [
"php",
"mysql",
"pdo"
] |
75,636,148 | 2 | null | 62,359,501 | 0 | null | Check that the folder containing the file that is currently running is in the explorer, if not open the folder in the explorer and the error squiggle will appear.
| null | CC BY-SA 4.0 | null | 2023-03-04T14:02:03.700 | 2023-03-04T14:02:03.700 | null | null | 21,331,807 | null |
75,636,146 | 2 | null | 75,636,042 | 0 | null | Make sure that the event name in the property of each text box is the same as the event name in the code. And try to write the shared code in the form of a method and call that shared method when calling the change event of each text box, as below:
```
private void textBox1_TextChanged(object sender, EventArgs e)
{
... | null | CC BY-SA 4.0 | null | 2023-03-04T14:01:53.417 | 2023-03-04T14:01:53.417 | null | null | 1,680,071 | null |
75,636,150 | 1 | null | null | -3 | 12 | it should be possible to type in ranges via the keyboard when clicking on the boxes , to change on slider value
I expected answer can this possible
| it should be possible to type in ranges via the keyboard | CC BY-SA 4.0 | null | 2023-03-04T14:02:10.660 | 2023-03-04T14:02:10.660 | null | null | 21,116,735 | [
"android",
"flutter",
"dart",
"filter",
"mobile"
] |
75,636,149 | 1 | 75,636,160 | null | -2 | 46 | I have two lists `J` and `Cond`. For every `True` element in `Cond`, I want the corresponding element in `J` to be zero. I present the current and expected output.
```
J=[0, 2, 0, 6, 7, 9, 10]
Cond=[False, True, False, True, True, True, True]
for i in range(0,len(J)):
if(Cond[i]==True):
J[i]==0
print(J)
``... | Comparing two lists and modifying one in Python | CC BY-SA 4.0 | null | 2023-03-04T14:02:05.057 | 2023-03-04T15:23:13.830 | null | null | 21,298,316 | [
"python",
"list"
] |
75,636,151 | 2 | null | 75,635,527 | 0 | null | Try following :
```
$SourceStream = [System.IO.FileStream]::new('c:\temp\test.txt',[System.IO.FileMode]::Open);
for($pos = $SourceStream.Length - 1; $pos -ge 0; $pos--)
{
$SourceStream.Position = $pos
$b = $SourceStream.ReadByte()
if(($b -eq 0x0A) -or ($b -eq 0x0D)) { break;}
}
$length = $SourceStream.Length -... | null | CC BY-SA 4.0 | null | 2023-03-04T14:02:22.840 | 2023-03-04T20:16:43.417 | 2023-03-04T20:16:43.417 | 5,015,238 | 5,015,238 | null |
75,636,152 | 1 | null | null | -2 | 14 | I'm working on a repo branch (develop2) and a senior dev made some changes on my branch develop2 thus made a commit. How can i get his changes in my local machine ?
When i do a commit on the branch i get all the changes made by the senior dev but i want to get his changes without having to do a commit&sync. What are th... | How to pull a commit to my local machine ? Or somehow merge commits of thesame branch | CC BY-SA 4.0 | null | 2023-03-04T14:02:42.300 | 2023-03-04T14:19:44.293 | 2023-03-04T14:19:44.293 | 3,001,761 | 20,432,224 | [
"git"
] |
75,636,154 | 1 | 75,636,236 | null | -2 | 32 | I'm trying to look through a long string to find instances of a substring, then I want to create a list that has the index of each substring found and the substring found. But instead of the index in a readable form, I'm getting a reference to the object, such as `[<built-in method index of str object at 0x000001687B0... | How do I append the index of a string to a list using extend() in python? | CC BY-SA 4.0 | null | 2023-03-04T14:02:56.737 | 2023-03-04T18:03:22.637 | null | null | 1,727,657 | [
"python"
] |
75,636,157 | 1 | null | null | 0 | 6 | Consider the following example:
```
class Item: Object {
@objc dynamic var id: UUID = UUID()
@objc dynamic var value: Int = 0
override class func primaryKey() -> String? {
return "id"
}
}
let realm = try! Realm()
try! realm.write {
let query1 = realm.objects(Item.self)
preco... | Does Realm guarantee that queries always reflect the current state of the database, even within a write transaction? | CC BY-SA 4.0 | null | 2023-03-04T14:03:51.453 | 2023-03-04T14:03:51.453 | null | null | 2,513,803 | [
"realm",
"mongodb-realm"
] |
75,636,143 | 1 | null | null | 0 | 22 | I am working on a very old project[](https://i.stack.imgur.com/9o0PO.png)
Its gradle version and plugin was very outdated
When I am trying to update both to the latest version, its giving me lot of errors.
Errors:
```
A problem occurred configuring root project 'android_calorie_counter-master'.
> Could not resolve all ... | Gradle Errors while updating | CC BY-SA 4.0 | null | 2023-03-04T14:01:29.457 | 2023-03-04T16:00:33.457 | 2023-03-04T15:51:17.143 | 2,442,831 | 19,005,139 | [
"java",
"android",
"gradle"
] |
75,636,158 | 2 | null | 75,636,103 | 0 | null | What you are doing is setting the day to 31ste on `SetCurrentDay(currentDate.day.day++);`
Than in the next line you check is it is equal to or bigger than the max day. in you `if`
It is so it will go to day 0.
if you change the if to only check in bigger than it will rollover a day later.
`if (currentDate.day.day > cur... | null | CC BY-SA 4.0 | null | 2023-03-04T14:03:56.217 | 2023-03-04T14:03:56.217 | null | null | 2,111,137 | null |
75,636,136 | 1 | null | null | 0 | 23 | I am deploying my spring boot applications in AWS lambda, but it seems like the initialization time of my application is more than 10 secs (greater than AWS lambda default time) so i am using async initialization of lambda handler using this link : [https://github.com/awslabs/aws-serverless-java-container/wiki/Quick-st... | AWS lambda not starting my spring boot application server | CC BY-SA 4.0 | null | 2023-03-04T14:00:44.967 | 2023-03-05T05:53:50.257 | 2023-03-05T05:53:50.257 | 3,671,056 | 12,918,873 | [
"amazon-web-services",
"spring-boot",
"aws-lambda"
] |
75,636,159 | 1 | null | null | -2 | 12 | Anyone knows a theme, configurable file or program to match Code - OSS with the Terminal colorscheme?
I want to have this colorscheme on my Code - OSS:
[Terminal Screenshot](https://i.stack.imgur.com/92aNp.png)
I tried lot of themes but the best I found was Nordic Dark Theme.
| Code - OSS, match colorscheme of terminal | CC BY-SA 4.0 | null | 2023-03-04T14:03:58.530 | 2023-03-04T15:36:42.883 | 2023-03-04T15:36:42.883 | 9,938,317 | 21,168,451 | [
"linux",
"visual-studio-code"
] |
75,636,155 | 2 | null | 75,635,426 | 1 | null | The output doesn't differ if you would've added `--extract-exclude=xp`. Please see my answer [here](https://stackoverflow.com/a/75632231/2703456) and the quote from the readme in particular.
What you're probably seeing:
```
xp := set -x is your friend
Homework questions.
Need some help with bash to combine two lists
Ss... | null | CC BY-SA 4.0 | null | 2023-03-04T14:03:11.213 | 2023-03-04T14:03:11.213 | null | null | 2,703,456 | null |
75,636,160 | 2 | null | 75,636,149 | 1 | null | Assignment is `=`, comparison for equality is `==`, so you'll want to do:
```
J = [0, 2, 0, 6, 7, 9, 10]
Cond = [False, True, False, True, True, True, True]
for i in range(len(J)):
if Cond[i]:
J[i] = 0
print(J)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T14:04:07.017 | 2023-03-04T14:04:07.017 | null | null | 573,255 | null |
75,636,161 | 2 | null | 75,636,099 | 1 | null | The exception message is quite clear. You need the mapping rule to map from `TadaLegalEmployerDto` to `TadaLegalEmployerModel`.
```
public GetLegalEmployerResponseDtoToGetLegalEmployerResponseModel()
{
CreateMap<TadaGetLegalEmployerResponseDto, TadaGetLegalEmployerResponseModel>();
CreateMap<TadaLegalEmployerD... | null | CC BY-SA 4.0 | null | 2023-03-04T14:04:08.440 | 2023-03-04T14:23:33.830 | 2023-03-04T14:23:33.830 | 8,017,690 | 8,017,690 | null |
75,636,165 | 1 | null | null | -1 | 12 | I am writing a utility using rust that I intend to use on the command line. Lets say the package is called `foo`. I install the package using `cargo install --path path/to/foo`, which adds an executable at the location `~/.cargo/bin/foo`.
How do I configure cargo to add it as a shell command so that I can call `foo xyz... | How to configure cargo install to add a shell command? | CC BY-SA 4.0 | null | 2023-03-04T14:04:40.723 | 2023-03-04T14:04:40.723 | null | null | 6,444,294 | [
"rust",
"rust-cargo"
] |
75,636,140 | 1 | null | null | 0 | 13 | I have set up the simplest implementation of an Angular 14 service consuming a .NET web API, yet for some reason I can never get the service to return anything other than an HTTP 404 error.
I've tested the API controller manually, and that's definitely returning the data I want, but for some reason the API call from An... | Angular proxy config refuses to route correctly. Where am I going wrong? | CC BY-SA 4.0 | null | 2023-03-04T14:00:54.683 | 2023-03-04T14:13:24.700 | 2023-03-04T14:13:24.700 | 3,001,761 | 995,337 | [
"angular",
"typescript",
".net-core",
"asp.net-core-webapi"
] |
75,636,164 | 2 | null | 75,635,016 | 0 | null | We can do this using simple sorter aggregator. But you need to decide how you will determine latest row. Based on salary or some data like last change date etc.?
I will assume there is a field called `last_change_date` and give you the mapping.
1. create a sorter trnsf - sort on emp_id, last_change_date descending in ... | null | CC BY-SA 4.0 | null | 2023-03-04T14:04:39.443 | 2023-03-04T14:04:39.443 | null | null | 6,430,523 | null |
75,636,163 | 2 | null | 75,636,105 | 1 | null | The value of `command` is:
- [either executed at container startup](https://docs.docker.com/compose/compose-file/#command)`entrypoint`- [passed along as argument to the entrypoint](https://docs.docker.com/compose/compose-file/#entrypoint)`entrypoint`
In the given example, [the Dockerfile in the git repository mentioned... | null | CC BY-SA 4.0 | null | 2023-03-04T14:04:16.143 | 2023-03-04T14:12:07.260 | 2023-03-04T14:12:07.260 | 4,216,641 | 4,216,641 | null |
75,636,171 | 2 | null | 75,634,979 | 0 | null | I'm afraid there's nothing to fix there; the tag clouds visualization in Kibana can only work over the entire keyword text
| null | CC BY-SA 4.0 | null | 2023-03-04T14:06:50.120 | 2023-03-04T14:06:50.120 | null | null | 3,029,337 | null |
75,636,166 | 1 | null | null | 0 | 5 | i have tabcontrol and use key name to call the form. but how to get keyname from there?
this is my code when add tabpages
```
Private Sub AddTabPages(ByVal iKey As String, ByVal iTitleName As String)
Dim oKeyFounded As Boolean = False
With tbcTop
For i = 0 To .TabPages.Count
... | vb.net how to get keyname in tabcontrol | CC BY-SA 4.0 | null | 2023-03-04T14:04:49.847 | 2023-03-04T14:04:49.847 | null | null | 9,640,721 | [
"vb.net-2010"
] |
75,636,173 | 1 | null | null | 0 | 15 | I'm looking for an WINAPI to add a new kerberos item to windows internal ticket store.
I'd like to offload the whole authentication process to a proprietary component and not rely on the OS kerberos implementation, and get the following items:
- -
I'd like to set these 2 items where the OS keeps these items to be used... | Passing kerberos TGT + Authenticator to local ticket store in Windows | CC BY-SA 4.0 | null | 2023-03-04T14:07:17.183 | 2023-03-04T14:45:55.720 | 2023-03-04T14:45:55.720 | 4,333,809 | 4,333,809 | [
"windows",
"authentication",
"winapi",
"kerberos",
"windows-authentication"
] |
75,636,131 | 2 | null | 75,621,915 | 1 | null | I guess there is some misunderstanding.
The class `org.apache.spark.sql.catalyst.plans.logical.LogicalPlan` itself doesn't have method `transformDown` either in Spark 3.1.2 or 3.3.0
```
runtime
.typeOf[LogicalPlan]
.decls
.foreach(println)
```
```
// 3.1.2
constructor LogicalPlan
method metadataOutput
method isS... | null | CC BY-SA 4.0 | null | 2023-03-04T13:59:46.773 | 2023-03-04T20:01:53.963 | 2023-03-04T20:01:53.963 | 5,249,621 | 5,249,621 | null |
75,636,170 | 1 | null | null | 0 | 12 | Let say, I have this document:
```
POST bug_reports/_doc/1
{
"title": "Results are not sorted correctly.",
"labels": {
"priority": "urgent",
"product": "A"
}
}
```
`labels` field is flattened which means we don't know the number/name of keys.
If I get an aggregation, it gives me something l... | Aggregation including keys and values for Flattened field | CC BY-SA 4.0 | null | 2023-03-04T14:06:28.037 | 2023-03-04T21:51:15.750 | null | null | 1,133,816 | [
"elasticsearch",
"elasticsearch-aggregation"
] |
75,636,174 | 2 | null | 75,628,944 | 0 | null | EDIT:
Also, I found out that if there's invalid html, prettier will spit errors and no formatting will happen. You can check for those errors in the terminal 'CTRL + SHIFT + U'. Probably more of a 'Prettier' thing rather than TailwindCSS thing.
---
I've had this issue for the past few days and I've managed to solve ... | null | CC BY-SA 4.0 | null | 2023-03-04T14:07:26.800 | 2023-03-04T14:31:47.847 | 2023-03-04T14:31:47.847 | 5,461,280 | 5,461,280 | null |
75,636,175 | 2 | null | 75,191,940 | 1 | null | I also encountered the same problem.
Refer to the Build Requirements of [https://pypi.org/project/pyopenjtalk/](https://pypi.org/project/pyopenjtalk/)
you can try in terminal one by one:
```
gcc (g++)
cmake
cython
```
Make sure they are all valid, fill in missing context
I was missing the cmake environment, I solved i... | null | CC BY-SA 4.0 | null | 2023-03-04T14:07:29.117 | 2023-03-04T14:10:37.360 | 2023-03-04T14:10:37.360 | 20,925,898 | 20,925,898 | null |
75,636,162 | 1 | null | null | 0 | 41 | I am trying to make #java code what will find path from [0][0] to [k-1][m-1]. But my created code is not working rightly.
End of program should be printed `(0,0) (0,1) (1,1)` but I got `(-1,-1)` what means that it can't find path. I think, problem is with returning array. But how to fix that?
My code:
If a particular l... | Returning correct array | CC BY-SA 4.0 | null | 2023-03-04T14:04:09.773 | 2023-03-04T14:04:09.773 | null | null | 21,331,719 | [
"java",
"arrays",
"path"
] |
75,636,178 | 1 | null | null | -1 | 8 | How do you access the names of all fonts available in your system when you are wanting to render text on pygame screen. ie
pygame.font.SysFont("this here.ttf",22)
I don't know any font names ,I just tried the ones from Microsoft Word like Calibri, Times New roman
| Pygame fonts and system fonts that are available to be rendered on my pygame screen | CC BY-SA 4.0 | null | 2023-03-04T14:07:36.960 | 2023-03-04T14:07:36.960 | null | null | 20,060,944 | [
"fonts",
"pygame",
"path",
"render",
"font-size"
] |
75,636,176 | 1 | null | null | 0 | 29 | I want to get a bin for the value of 'x' in the SystemVerilog as shown below, since the logic has 4 types of 0,1,x,z, I want to check the coverpoint as a bin, so I made a simple example to check the value of 4 types in the coverpoint.
```
typedef enum logic [2:0] { A,B,C,D } alpha;
program main;
alpha y;
a... | How can coverage have a coverpoint for 'x' in the systemverilog? | CC BY-SA 4.0 | null | 2023-03-04T14:07:34.247 | 2023-03-04T16:46:10.913 | 2023-03-04T14:51:42.220 | 20,066,803 | 20,066,803 | [
"verilog",
"system-verilog"
] |
75,636,172 | 2 | null | 53,045,444 | 0 | null | Rules engines are frequently used in real time streaming for analytics, notifications, and firing rules when patterns in data are matched.
The typical format is
- `When`- `Then`
These are especially useful in an environment where a stream of events can be monitored by the engine.
Simple rules can be constrained to the ... | null | CC BY-SA 4.0 | null | 2023-03-04T14:07:05.647 | 2023-03-04T14:07:05.647 | null | null | 314,291 | null |
75,636,182 | 1 | null | null | -1 | 7 | I have sqlite(.sqlite) database file in azure data lake but when i try to import in powerbi it was throwing me error.(Please also guide me how to make configuration in ODBC driver)
I have sqlite(.sqlite) database file in azure data lake but when i try to import in powerbi it was throwing me error.(Please also guide me ... | how to import sqlite .sqlite db file present in azure data lake in powerbi | CC BY-SA 4.0 | null | 2023-03-04T14:08:41.050 | 2023-03-04T14:08:41.050 | null | null | 21,331,810 | [
"sqlite"
] |
75,636,181 | 2 | null | 75,636,121 | 2 | null | there is a syntax error in your code I think, instead of the statement `<img src=<?php $folder ?> height="200px" width ="200px">` you should type it like this `<img src="<?php echo $folder; ?>" height="200px" width ="200px">`, So I think that should work as syntax error might be the problem.... Try it!
| null | CC BY-SA 4.0 | null | 2023-03-04T14:08:21.013 | 2023-03-04T14:08:21.013 | null | null | 21,316,231 | null |
75,636,167 | 1 | 75,636,498 | null | 0 | 14 | I am using datatables for my project and it works great. However, I am not sure how to add Select value in the dropdwon menu instead of just displaying blank as users may not know to select list from the dropdown menu.
Here is what I have. Thanks.
Link to the code - [https://live.datatables.net/clone/7732/edit](https:/... | How do I add Select value text in a dropdwon menu in this datatable? | CC BY-SA 4.0 | null | 2023-03-04T14:06:06.320 | 2023-03-04T15:00:57.817 | null | null | 21,267,931 | [
"javascript",
"html",
"datatables"
] |
75,636,188 | 2 | null | 75,630,379 | 0 | null | from the docs: [https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/indexing.html](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/indexing.html)
you have examples of how to index single docs using the fluent DSL, classic builders, async client, and - as you request... | null | CC BY-SA 4.0 | null | 2023-03-04T14:09:38.200 | 2023-03-04T14:09:38.200 | null | null | 3,029,337 | null |
75,636,186 | 1 | null | null | 0 | 14 | I am using Next.JS for my project. All of a sudden I am getting this error.
"ReferenceError: Kg is not defined", after debugging it i found the file which is causing this issue.
file name is VM3284, file content is
```
(function Rn(SJ, Vf) {
//somecode
let GB = UL ? UL ? "tCtx" : po : po
, IF = UL ? Kg + GB... | ReferenceError: Kg is not defined | CC BY-SA 4.0 | null | 2023-03-04T14:09:14.933 | 2023-03-04T14:10:32.320 | 2023-03-04T14:10:32.320 | 438,992 | 12,647,500 | [
"reactjs",
"next.js",
"referenceerror"
] |
75,636,180 | 2 | null | 75,628,869 | 0 | null | How is your Lambda function invoked. DO you pass it Event JSON?
I can answer this by referencing my example. I have a Lambda function named where I use Event JSON that specifies a file name. The Lambda function generates a presigned URL by invoking .
[](https://i.stack.imgur.com/fpBIx.png)
The Lambda function is imple... | null | CC BY-SA 4.0 | null | 2023-03-04T14:08:00.227 | 2023-03-04T14:33:53.083 | 2023-03-04T14:33:53.083 | 1,435,543 | 1,435,543 | null |
75,636,179 | 2 | null | 75,635,782 | 1 | null | Since you're passing a media type of `application/json`:
- You must pass a JSON to [Invoke-WebRequest](https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-webrequest)'s `-Body` parameter- PowerShell will automatically convert a [[pscustomobject]](https://learn.microsoft.com/en-us/powersh... | null | CC BY-SA 4.0 | null | 2023-03-04T14:07:53.690 | 2023-03-04T14:07:53.690 | null | null | 45,375 | null |
75,636,189 | 2 | null | 75,634,191 | 1 | null | Queryset methods often returns a new queryset instances ([doc](https://docs.djangoproject.com/en/4.1/ref/models/querysets/#methods-that-return-new-querysets)). This means that cache is not preserved.
In your first example, iterating over your three querysets provoke SQL requests to occur and cache to be filled. You're ... | null | CC BY-SA 4.0 | null | 2023-03-04T14:09:38.897 | 2023-03-04T14:09:38.897 | null | null | 20,263,044 | null |
75,636,190 | 1 | 75,636,519 | null | -2 | 13 | Under `nvim 0.8.3` typing in the `:Bwipeout` command when in an "empty" buffer, the following error message is displayed:
```
Error detected while processing the following function <SNR>53_bdelete
E684: list index out of range: 0
E121: undefined variable: back
```
The `:verbose func <SNR>53_bdelete` command shows me t... | How to report on a neovim issue | CC BY-SA 4.0 | null | 2023-03-04T14:09:39.753 | 2023-03-04T15:04:44.687 | null | null | 958,373 | [
"neovim"
] |
75,636,153 | 1 | null | null | 0 | 6 | I'm using Pytorch-lightning to train my . CPM model requires 2 input, which is and of the image, and the output would be of the image, which is actually a set of key-points. I used [freiHAND](https://www.kaggle.com/datasets/danieldelro/freihand) dataset to train this model and I got a `Runtime Error` , when I tried ... | RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 31 but got size 30 for tensor number 2 in the list | CC BY-SA 4.0 | null | 2023-03-04T14:02:46.297 | 2023-03-04T14:02:46.297 | null | null | 21,331,717 | [
"python",
"deep-learning",
"pytorch",
"conv-neural-network",
"pytorch-lightning"
] |
75,636,183 | 1 | null | null | 0 | 14 | Trying to understand some source code, I run into an issue I cannot figure out.
I created a minimum example as follows.
I have a main file and a module, named `main_file.py` and `Problem.py`.
The main file contains a Class definition, as well as a function that returns another class via the `type(name, bases, dict)` fu... | Python: error when importing Class defined via function type() | CC BY-SA 4.0 | null | 2023-03-04T14:08:48.780 | 2023-03-04T14:41:59.010 | null | null | 4,913,660 | [
"python-3.x",
"oop",
"typing"
] |
75,636,193 | 1 | null | null | 0 | 4 | I am developing an social media backend application using apolloserver 4, I want to add a functionality to upload image for post. I search all the docs unable to find how can I develop Graphql API in apollo server 4 to upload an image.
I searched about `graphql-Upload` but it is not working and Found no document relate... | How can i upload file with Apollo server 4? | CC BY-SA 4.0 | null | 2023-03-04T14:09:54.037 | 2023-03-04T14:09:54.037 | null | null | 15,859,616 | [
"javascript",
"node.js",
"file-upload",
"graphql",
"apollo-server"
] |
75,636,195 | 2 | null | 75,636,130 | 1 | null | I think the main issue is that you are telling TypeScript that the getter is a function that returns a string, or a function that returns a number. You could do it like this:
```
function extract<M>(getter: () => M): M {
return getter()
}
let getter: () => string | number
function wrapper() {
const result = extra... | null | CC BY-SA 4.0 | null | 2023-03-04T14:10:12.883 | 2023-03-04T14:10:12.883 | null | null | 12,180,422 | null |
75,636,192 | 2 | null | 75,635,403 | 0 | null | As mentioned in one of the comments, the issue you have is caused by your underlying CSV missing data. Tuple unpacking is not a suitable approach when you can't guarantee the number of elements in a sequence as:
1. You can't determine which element is missing
2. And thus error handling becomes very challenging.
. Th... | null | CC BY-SA 4.0 | null | 2023-03-04T14:09:53.983 | 2023-03-04T14:09:53.983 | null | null | 21,306,705 | null |
75,636,177 | 1 | null | null | 0 | 16 | I get the following error when running `library(stringi)` and many other packages in RStudio. .
```
>> library(stringi)
Error: package or namespace load failed for ‘stringi’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/user/miniconda3/envs/r-4.2/lib/R/library/stringi/libs/stringi.so':... | Rstudio and conda: GLIBCXX_3.4.30 not found | CC BY-SA 4.0 | null | 2023-03-04T14:07:34.617 | 2023-03-04T14:27:08.817 | 2023-03-04T14:27:08.817 | 1,310,511 | 1,310,511 | [
"r",
"rstudio",
"conda"
] |
75,636,197 | 2 | null | 75,631,294 | 0 | null | Different answer for differing use cases: loading, storage or retrieving data?
For loading you can use CALL apoc.periodic.iterate. You can set the size of each iteration of a file which is not in memory. This also has a recovery capability if the connection is interrupted.
The schema is particularly important in storin... | null | CC BY-SA 4.0 | null | 2023-03-04T14:10:24.287 | 2023-03-04T14:10:24.287 | null | null | 4,414,246 | null |
75,636,198 | 1 | null | null | 0 | 18 | I am creating a board game that can have both human and bot players.
My first version, which uses the Transcript, is ready. So now I want to make a better looking, more user friendly version using Morphs. The problem is when I start the game with only bot players. Only the end board is shown, whereas I would like to se... | Refreshing a Morph without any user interaction | CC BY-SA 4.0 | null | 2023-03-04T14:10:35.667 | 2023-03-04T14:10:35.667 | null | null | 4,478,755 | [
"smalltalk",
"squeak",
"morphic"
] |
75,636,196 | 1 | null | null | 0 | 6 | I have installed yt-dlp on Widows 10 (I didn't have youtube-dl) using winget which went find and yt-dlp shows as installed.
But my Python script can't find it probably because it is not in the path.
What do I do to correct this?
what file do I seach for and where?
The I suppose I add the folder to Path, no?
I can't fin... | I used winget to install yt-dlp but where ever the files are they are not in the PATH,because my python scripts can't find yt-dlp | CC BY-SA 4.0 | null | 2023-03-04T14:10:13.660 | 2023-03-04T14:10:13.660 | null | null | 19,632,526 | [
"location",
"yt-dlp",
"winget"
] |
75,636,200 | 2 | null | 75,636,154 | 0 | null | You can use [enumerate](https://stackoverflow.com/questions/22171558/what-does-enumerate-mean) :
```
test_string = "abcdefg"
look_for = ["b", "f"]
result = []
for index, each in enumerate(test_string):
if each in look_for:
result.extend([index, each])
print(result)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T14:10:42.073 | 2023-03-04T14:10:42.073 | null | null | 13,413,606 | null |
75,636,199 | 1 | null | null | 0 | 37 | I want to my application can prevent from windows shutting down.
I know that there is a system command to do that. But don't work for my program.
```
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (e.CloseReason.Equals(CloseReason.WindowsShutDown))
{
MessageBox.Show("Cancelli... | C# how to Cancel Windows Shutdown | CC BY-SA 4.0 | null | 2023-03-04T14:10:37.280 | 2023-03-04T17:44:31.640 | null | null | 21,331,824 | [
"c#"
] |
75,636,194 | 2 | null | 75,633,851 | 1 | null | Faster variant of my first answer, this one only checking linear summation like `((a+b)+c)+d` like you do yourself, not also divide&conquer summation like `(a+b)+(c+d))`. Takes me 0.03 seconds for length 10 and 0.12 seconds for length 12.
```
import random
import itertools
import math
import functools
def sums(nums):
... | null | CC BY-SA 4.0 | null | 2023-03-04T14:10:10.440 | 2023-03-04T14:10:10.440 | null | null | 12,671,057 | null |
75,636,206 | 1 | null | null | 0 | 19 | I put the `SyntaxAttr.vim` file in the `~/.vim/autoload` folder.
I want to use autocmd command to set the autoload event.
How should I do it.
Autoload the `SyntaxAttr.vim`.
| Vim autocmd read .vim file | CC BY-SA 4.0 | null | 2023-03-04T14:11:30.843 | 2023-03-04T14:48:41.650 | 2023-03-04T14:28:39.097 | 546,861 | 20,182,289 | [
"vim",
"autoload",
"autocmd"
] |
75,636,202 | 2 | null | 75,636,011 | 2 | null | It is evident that you need to create an array of indices that will be sorted.
Here is a demonstration program.
```
#include <iostream>
#include <iterator>
#include <algorithm>
#include <numeric>
int main()
{
int a[] = { 66, 43, 642 };
size_t i[std::size( a )];
std::iota( std::begin( i ), std::end( i ), 0... | null | CC BY-SA 4.0 | null | 2023-03-04T14:10:58.957 | 2023-03-04T15:16:28.177 | 2023-03-04T15:16:28.177 | 2,877,241 | 2,877,241 | null |
75,636,191 | 1 | null | null | 0 | 15 | I'm trying to develop a 3D globe application by using Cesium's Unity version.
Since am a newbie at both Unity and Cesium, I could not figure it out how to implement it. Then I asked chat-gpt to how, in order to have an insight. The following piece of code had been provided by chat-gpt.
My question is, would it work? If... | Using Cesium Unity in WPF Application | CC BY-SA 4.0 | null | 2023-03-04T14:09:41.710 | 2023-03-04T14:09:41.710 | null | null | 5,365,641 | [
"c#",
"wpf",
"unity3d",
"cesiumjs"
] |
75,636,203 | 1 | null | null | 1 | 22 | I'm trying to capture information within a website but I'm having problems with the iframes.
I need to access the site [https://www.saisp.br/online/produtos-publicos/](https://www.saisp.br/online/produtos-publicos/), click on the left menu `Paraíba do Sul Telemetric Network` and capture the value of the line `Rio Parai... | Scraping inside IFrame with Puppeteer | CC BY-SA 4.0 | null | 2023-03-04T14:10:59.000 | 2023-03-05T01:43:49.803 | 2023-03-05T01:43:49.803 | 6,243,352 | 12,769,782 | [
"javascript",
"puppeteer"
] |
75,636,209 | 2 | null | 75,620,059 | 0 | null | I finally found the problem: I was using the index of the array to define the key of my group, so each time I deleted an item, the index of the group changed and so it created a new group component
NEVER USE INDEX AS KEY
| null | CC BY-SA 4.0 | null | 2023-03-04T14:11:45.667 | 2023-03-04T14:11:45.667 | null | null | 21,321,410 | null |
75,636,204 | 1 | null | null | -5 | 12 | [enter image description here](https://i.stack.imgur.com/n8H2Z.png)
The following table consists of training data from an employee database. The data have been generalized. Let status be the class label attribute.
Department
Age
salary
count
status
Sales
31…35
46K…50K
30
Senior
Sales
26…30
26K…30K
40
Junior
Sales
31…35... | The following table consists of training data from an employee database. The data have been generalized. Let status be the class label attribute | CC BY-SA 4.0 | null | 2023-03-04T14:11:12.510 | 2023-03-04T14:14:07.117 | 2023-03-04T14:14:07.117 | 286,934 | 21,331,832 | [
"computer-science"
] |
75,636,212 | 2 | null | 44,045,158 | 0 | null | To add to the answer above from Tony Shouse, the following code works for me using Visual Studio Code if you would like to gather the Adjusted Close column for multiple ticker symbols at once.
```
import numpy as np
import pandas as pd
from pandas_datareader import data as wb
import matplotlib.pyplot as plt
import yfin... | null | CC BY-SA 4.0 | null | 2023-03-04T14:12:28.003 | 2023-03-04T14:15:20.497 | 2023-03-04T14:15:20.497 | 21,331,857 | 21,331,857 | null |
75,636,187 | 1 | null | null | 0 | 22 | I was working on a little UI script, when suddenly Unity throw this error:
```
Assets\UI\Menu\MenuUIManager.cs(91,36): error CS1061: 'GameObject' does not contain a definition for 'SetActive' and no accessible extension method 'SetActive' accepting a first argument of type 'GameObject' could be found (are you missing a... | GameObject doesn't contain a definition for SetActive(); | CC BY-SA 4.0 | null | 2023-03-04T14:09:24.733 | 2023-03-04T14:21:17.387 | 2023-03-04T14:15:42.943 | 12,572,405 | 17,190,748 | [
"c#",
"unity3d",
"gameobject"
] |
75,636,211 | 2 | null | 75,324,415 | 0 | null | Not yet a final answer (yet), but an instruction to find the problem:
1. Pasting your SSML code without text into the Alexa Developer Console Tool "Voice & Tone", you will get back just the ringing - so SSML on its own is ok and Alexa engine seem to work.✅
2. When we look at the connection with openHAB and the Amazon ... | null | CC BY-SA 4.0 | null | 2023-03-04T14:12:22.387 | 2023-03-04T17:24:09.947 | 2023-03-04T17:24:09.947 | 21,026,999 | 21,026,999 | null |
75,636,213 | 2 | null | 69,306,018 | 0 | null | To fix this issue, you should rename your file to something other than collections.py, such as my_collections.py. Then, in your code, you can import the Counter class from the built-in collections module like this:
```
from collections import Counter
```
| null | CC BY-SA 4.0 | null | 2023-03-04T14:12:31.083 | 2023-03-04T14:12:31.083 | null | null | 21,067,992 | null |
75,636,214 | 1 | null | null | -1 | 32 | Why does this top loop work and not the second, commented-out loop?
```
rows = int(input('How many rows? '))
while rows <= 0 or rows >= 26:
print('Out of range - must be between 1 and 25')
rows = int(input('How many rows? '))
else:
for n in range(rows):
print('9' * 9 + '8' * 8 + '7' * 7 + '6' * 6 +... | Why does the first Python Loop Work and Not the second? | CC BY-SA 4.0 | null | 2023-03-04T14:12:31.193 | 2023-03-04T14:54:50.650 | null | null | 12,060,579 | [
"python",
"loops",
"for-loop",
"while-loop"
] |
75,636,218 | 1 | null | null | -3 | 27 | I need to extract some data from Python to Excel
I have installed pandas and openpyxl, but I can't import it into Python.
| How to extract data from Python into Excel? | CC BY-SA 4.0 | null | 2023-03-04T14:13:03.700 | 2023-03-04T14:13:03.700 | null | null | 21,330,922 | [
"python",
"excel"
] |
75,636,205 | 1 | 75,636,429 | null | 1 | 15 | I have a series of 2D DataFrames that should be merged into a 3D xarray. The structure of DataFrames looks like this:
| | 5 6 4 | 8 -1 3 | angle |
| | ----- | ------ | ----- |
| 5 | 105.87 | 459.62 | 0.1 |
| 10 | 211.74 | 919.24 | 0.1 |
| | 5 6 4 | 8 -1 3 | angle |
| | ----- | ------ | ----- |
| 5 | 125.87... | Merging series of 2D DataFrames to 3D xarray | CC BY-SA 4.0 | null | 2023-03-04T14:11:16.057 | 2023-03-04T14:50:22.967 | null | null | 9,859,642 | [
"python",
"dataframe",
"python-xarray"
] |
75,636,207 | 2 | null | 75,634,346 | 0 | null | following the model `storegas`, you dont need to store `name` in fields `stores` and `package` of model `Product` because we can get them from `storage`
it would be like :
```
//product model
{
name:{type:String, required:true, unique:true},
stores:[
{
storeId:String,
package:[{
... | null | CC BY-SA 4.0 | null | 2023-03-04T14:11:39.463 | 2023-03-04T16:36:37.720 | 2023-03-04T16:36:37.720 | 9,267,467 | 9,267,467 | null |
75,636,219 | 1 | null | null | 0 | 16 | I created a table using gtsummary (tbl_summary).
I want to save it as .docx, so as far as I understand I have to convert it to a flextable first and then save as doc.
I used this code:
```
tf <- tempfile(fileext = ".docx")
ft1 <- as_flex_table(table)
save_as_docx(`Table` = ft1,
path = tf,
pr_... | Change path where I save flextable as .docx in R | CC BY-SA 4.0 | null | 2023-03-04T14:13:37.403 | 2023-03-04T14:17:13.677 | 2023-03-04T14:17:13.677 | 19,745,561 | 19,745,561 | [
"r",
"dataframe",
"gtsummary",
"flextable"
] |
75,636,210 | 1 | null | null | 0 | 29 | context: [parsing/matching string occurrence in C](https://stackoverflow.com/questions/2614246/parsing-matching-string-occurrence-in-c/2614259#2614259)
```
/*
https://stackoverflow.com/questions/2614246/parsing-matching-string-occurrence-in-c/2614259#2614259
gcc -Wall regex12.c && ./a.out
valgrind ./a.out
*/
#include... | posix regex how to print multiple matches | CC BY-SA 4.0 | null | 2023-03-04T14:11:46.657 | 2023-03-04T15:46:16.080 | 2023-03-04T15:46:16.080 | 15,603,477 | 15,603,477 | [
"c"
] |
75,636,217 | 1 | null | null | 0 | 16 | I have just added Middleware to my codes which giving this error when I wanted to run it
`System.InvalidOperationException: 'Cannot resolve scoped service 'HORA_API.Model.AGUSContext' from root provider.'`
[](https://i.stack.imgur.com/lhiGm.png)
this is the program.cs
```
global using HORA_API.Model;
using HORA_API.Mid... | System.InvalidOperationException: Cannot resolve scoped service - .NET 6 | CC BY-SA 4.0 | null | 2023-03-04T14:13:02.177 | 2023-03-04T14:13:02.177 | null | null | 20,980,768 | [
"c#",
"asp.net",
"asp.net-mvc",
"middleware",
"asp.net-core-6.0"
] |
75,636,216 | 1 | null | null | 0 | 10 | I'm getting the following error while doing `sudo npm create svelte@latest my-app`:
```
$ sudo npm create svelte@latest my-app
npm ERR! path /home/gama
npm ERR! command failed
npm ERR! command sh -c create-svelte "my-app"
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-03-04T14_... | npm ERR! code 127. npm ERR! command failed | CC BY-SA 4.0 | null | 2023-03-04T14:12:53.270 | 2023-03-04T14:29:28.650 | 2023-03-04T14:29:28.650 | 15,774,325 | 15,774,325 | [
"npm"
] |