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,637,674 | 1 | null | null | 0 | 9 | I have tried like 10 solutions to make it work but it doesn't help. I'm trying to send parameter to a C# controller but everytime my parameter on controller side shows value of null. Here is my code:
```
function createObject(x) {
var obj = {};
obj.Name = x;
$.ajax({
type: "POST",
u... | AJAX method won't pass parameter to a Controller (C#) | CC BY-SA 4.0 | null | 2023-03-04T18:13:55.653 | 2023-03-04T19:56:20.373 | null | null | 12,152,824 | [
"c#",
"asp.net",
".net",
"ajax",
"asp.net-ajax"
] |
75,637,683 | 1 | null | null | 0 | 19 | I mean, when I read the documentation, the option $flag contain more likely a string than a int.
I understand that is a pre constructed string, but :
- -
| why is flag a int type in sort php function? | CC BY-SA 4.0 | null | 2023-03-04T18:15:28.890 | 2023-03-04T18:15:28.890 | null | null | 7,353,626 | [
"php",
"documentation"
] |
75,637,682 | 1 | null | null | 0 | 12 | I'm trying to migrate a huge company project from Vue2 with Webpack to Vue2.7.14 with Vite and I've ran into an issue when migrating the existing Unit Tests to Vitest.
There weren't any issues with the tests on Vue2 Webpack combo, but with Vitest an imported module (node module - butterfly-vue) stops the unit test exec... | Vitest fails because of an imported module | CC BY-SA 4.0 | null | 2023-03-04T18:15:24.153 | 2023-03-04T18:20:18.563 | 2023-03-04T18:20:18.563 | 21,332,753 | 21,332,753 | [
"vue.js",
"unit-testing",
"node-modules",
"vite",
"vitest"
] |
75,637,685 | 2 | null | 75,637,156 | 0 | null | Here is a way using `pd.get_dummies()`
```
c = ['org','product_version','release_date']
df2 = pd.get_dummies(df,columns = df.columns.difference(c))
df2.groupby(c).agg(**{i:(i,'sum') for i in df2.columns.difference(c)},count = ('org','count')).reset_index()
```
| null | CC BY-SA 4.0 | null | 2023-03-04T18:15:33.690 | 2023-03-04T18:15:33.690 | null | null | 13,802,115 | null |
75,637,688 | 1 | null | null | -1 | 15 | How can I set the scale of a log-scaled axis in matplotlib to show values less than base^1 and space them evenly?
:
I have a scale that looks like this:
[](https://i.stack.imgur.com/SMf5S.png)
But I want a scale that looks like this:
[](https://i.stack.imgur.com/gRg12.png)
| How to evenly space the grid on a matplotlib log scale | CC BY-SA 4.0 | null | 2023-03-04T18:15:56.443 | 2023-03-04T19:26:59.143 | null | null | 14,688,879 | [
"python",
"matplotlib",
"graph",
"logarithm"
] |
75,637,661 | 2 | null | 75,636,398 | 3 | null | OpenSeadragon thinks in tiled image pyramids, where most of the time you access the image metadata (resolution, and the like) and the actual tiles (bitmap data) separately.
Supporting actual images is the outlier in such world, and it's still handled as if image metadata and bitmap data would arrive from separate sourc... | null | CC BY-SA 4.0 | null | 2023-03-04T18:11:46.760 | 2023-03-04T18:11:46.760 | null | null | 7,916,438 | null |
75,637,684 | 2 | null | 75,619,137 | 1 | null | Here is another way to do it with Pandas [Index.isin](https://pandas.pydata.org/docs/reference/api/pandas.Index.isin.html), [pipe](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.pipe.html), and [lt](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.lt.html):
```
df_subset = df[
df.index.i... | null | CC BY-SA 4.0 | null | 2023-03-04T18:15:30.673 | 2023-03-04T18:15:30.673 | null | null | 11,246,056 | null |
75,637,681 | 1 | null | null | 0 | 16 | I stumbled Across a library called ssh2 that is used to both connect to SSH Servers and also host SSH Servers themselves. Now the problem is that I have copied and pasted the code they offered in their NPM page but the shell gets closed as soon as it is opened on the client-side, the error
keeps showing up again and a... | How can I host an SSH CLI Endpoint on my NodeJS Server | CC BY-SA 4.0 | null | 2023-03-04T18:15:12.443 | 2023-03-04T18:24:34.163 | null | null | 21,332,848 | [
"javascript",
"node.js",
"command-line-interface",
"ssh2"
] |
75,637,687 | 1 | null | null | -1 | 31 | It all started with me looking at Spring Data's `Streamable` interace. I noticed that following method returns `Supplier<Iterable<T>>` while declared as one that returns `Streamable<T>`:
```
@FunctionalInterface
public interface Streamable<T> extends Iterable<T>, Supplier<Stream<T>> {
static <T> Streamable<T> of(It... | Why can you return interface's superclass if it is functional, but not normal one? | CC BY-SA 4.0 | null | 2023-03-04T18:15:56.470 | 2023-03-04T18:43:32.203 | 2023-03-04T18:43:32.203 | 438,154 | 10,872,937 | [
"java",
"types",
"method-reference",
"functional-interface"
] |
75,637,690 | 1 | null | null | 0 | 18 | I'm trying to create a very simple plot using Matplotlib:
```
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-5, 5, 10000)
y = 3 * x**2 + 1
plt.plot(x, y)
plt.show()
```
This creates a plot, but when I mouseover various points, the y values displayed seem to be significantly off from what they sh... | Inaccurate y values for simple Matplotlib plot | CC BY-SA 4.0 | null | 2023-03-04T18:16:03.240 | 2023-03-04T18:20:34.803 | 2023-03-04T18:20:34.803 | 21,332,879 | 21,332,879 | [
"matplotlib"
] |
75,637,694 | 1 | null | null | 0 | 16 | I'm connecting a php file to a database in phpmyadmin, when i try it locally with XAMPP everything works just fine and the database is getting the information.
It's a school project so i need to uploaded the code using fillzilla. When i do it i don't get any trouble and i check the uploaded site and when i submit the i... | I'm getting this error after i upload my php file in fillezilla SQLSTATE[HY000] [1045] Access denied for user 'user'@'localhost' (using password: YES) | CC BY-SA 4.0 | null | 2023-03-04T18:17:09.143 | 2023-03-04T19:32:20.820 | 2023-03-04T19:14:55.093 | 2,310,830 | 19,327,178 | [
"php",
"html",
"mariadb",
"xampp"
] |
75,637,692 | 2 | null | 75,637,627 | 0 | null | As the error suggests everything inside `<Routes>` must be wrapped with `<Route><header className="App-header"></Route>` or move the Header before `<Routes>` so like this
```
<Router>
<header className="App-header">
<p>
BUGHOUND
</p>
<Button variant="contained" >Create a bug</... | null | CC BY-SA 4.0 | null | 2023-03-04T18:16:54.533 | 2023-03-04T18:16:54.533 | null | null | 10,655,538 | null |
75,637,689 | 2 | null | 75,637,602 | 0 | null | To resolve the issue, you can try the following steps:
1. Check the current working directory of your Python script and make sure that the CSV file is located in the same directory. You can use the os module to get the current working directory and list the files in the directory.
2. If the CSV file is located in a di... | null | CC BY-SA 4.0 | null | 2023-03-04T18:15:58.730 | 2023-03-04T18:15:58.730 | null | null | 1,012,111 | null |
75,637,679 | 2 | null | 75,637,634 | 0 | null | It looks like you're passing the wrong thing to `Ps.initalize`. It works if you pass `document.body` instead:
```
Ps.initialize(document.body);
var el = document.querySelector('.container');
function scrollMeTo() {
el.scrollTo({
left: 0,
top: 200,
behavior: 'smooth'
});
}
```
```
.container {
width: ... | null | CC BY-SA 4.0 | null | 2023-03-04T18:14:24.423 | 2023-03-04T18:14:24.423 | null | null | 13,376,511 | null |
75,637,686 | 1 | null | null | -1 | 7 | I keep getting "Uncontrolled set entered as constant" error in GAMS for the Bellman and Policy equations and I believe this affects the Solve statement below.
```
Sets
Regions /r1*r11/,
RewardMap /r1hA, r1hB, r1hC, r2mA , r2mB, r2mC, r3mA , r3mB, r3mC, r4mA , r4mB, r4mC, r5lA , r5lB, r5lC, r6lA , r6lB, r6lC, r7... | MDP Model in GAMS | CC BY-SA 4.0 | null | 2023-03-04T18:15:53.793 | 2023-03-04T18:15:53.793 | null | null | 21,332,811 | [
"python",
"machine-learning",
"policy",
"gams-math"
] |
75,637,695 | 1 | null | null | 1 | 17 | I'm learning parallel programming and I'm wondering how i can most effectively parallel [Radix sort](https://en.wikipedia.org/wiki/Radix_sort).
I've got and idea that before radix ill sort numbers by the count of digits and than ill send them to `radixSort` algorithm and connect sorted arrays by the digits. But i don't... | Paralel RadixSort of numbers | CC BY-SA 4.0 | null | 2023-03-04T18:17:24.227 | 2023-03-04T21:05:50.283 | 2023-03-04T20:04:34.063 | 16,462,878 | 17,825,886 | [
"python",
"multithreading",
"parallel-processing",
"multiprocessing"
] |
75,637,699 | 2 | null | 75,603,787 | 0 | null | I would try Vladimir's suggestion about oneTapEnabled first. but for me I had the following code code in the ngOnInit() method, and it popped up the login page on load. I fixed it by moving it to the click method.
```
this.googleAuthService.authState.subscribe((user) => {
var socialUser = user;
var isLoggedIn = (us... | null | CC BY-SA 4.0 | null | 2023-03-04T18:18:33.660 | 2023-03-04T18:18:33.660 | null | null | 12,271,569 | null |
75,637,697 | 1 | null | null | 0 | 16 | I've been trying to solve this for a while, and have come to the conclusion that I just need to ask. Basically, I have a table that I extracted from a PDF, using Tabula, and I put that in a DataFrame. The ultimate goal is to convert the extracted table in a JSON format so I end up converting the DataFrame into a dictio... | Converting a DataFrame into a Dictionary | CC BY-SA 4.0 | null | 2023-03-04T18:17:57.183 | 2023-03-04T21:57:50.053 | null | null | 21,332,686 | [
"dataframe",
"dictionary"
] |
75,637,702 | 2 | null | 75,637,300 | 1 | null | If you want to avoid the danger mentionned by @BenBolker you can use the package:
```
library(Ryacas)
expression <- readline(prompt = "Enter the expression : ")
yac_str(expression)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T18:19:10.033 | 2023-03-04T18:19:10.033 | null | null | 1,100,107 | null |
75,637,696 | 1 | null | null | 0 | 27 | I faced this exception in spark worker node
```
Exception in thread "dispatcher-event-loop-14" java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.HashMap.newNode(HashMap.java:1747)
at java.util.HashMap.putVal(HashMap.java:631)
at java.util.HashMap.put(HashMap.java:612)
at java.util.Hash... | OutOfMemoryError in Spark worker process leaves jvm in hanging state | CC BY-SA 4.0 | null | 2023-03-04T18:17:42.873 | 2023-03-04T21:44:04.410 | 2023-03-04T19:00:35.917 | 12,983,195 | 12,983,195 | [
"java",
"apache-spark",
"jvm",
"out-of-memory",
"sigterm"
] |
75,637,704 | 1 | null | null | 2 | 30 | I'm trying to print out the local time on my computer using C' `localtime()` function;
The default format of my locale is , so
The expected output is:
But I get:
I was thinking, maybe the localtime function does not follow the mm/dd/yyyy, and everything would be correct except the month (behind by 1)? It is really c... | localtime() giving the wrong date in C | CC BY-SA 4.0 | null | 2023-03-04T18:19:11.827 | 2023-03-04T18:21:13.117 | null | null | 11,152,680 | [
"c",
"localtime"
] |
75,637,703 | 1 | null | null | -1 | 9 | In console application I tried below code to get the token but getting error- any help thanks in advance.
```
var client = new RestClient("https://api.kite.trade");
var request = new RestRequest("/oauth/token", Method.Post);
request.AddParameter("grant_type", "password");
request.Ad... | How to generate access token zerodha kite api c# | CC BY-SA 4.0 | null | 2023-03-04T18:19:11.613 | 2023-03-04T18:28:33.967 | 2023-03-04T18:28:33.967 | 23,528 | 428,073 | [
"c#",
"restsharp"
] |
75,637,701 | 1 | null | null | 0 | 8 | I'm trying to use cdn-hosted appbridge of shopify and followed the docs carefully. I have the following code:
```
<script src="https://unpkg.com/@shopify/app-bridge@3"></script>
<script>
var AppBridge = window['app-bridge'];
const config = {
apiKey: "...",
host: new URLSearchParams(location.search).get("ho... | shopify cdn-hosted appbridge not working in php | CC BY-SA 4.0 | null | 2023-03-04T18:18:52.283 | 2023-03-04T18:18:52.283 | null | null | 18,044,378 | [
"php",
"shopify",
"shopify-app-bridge"
] |
75,637,700 | 2 | null | 73,848,271 | 0 | null | So I did find out how to do this and it's pretty simple but again there is barely any documentation. To read the process memory you have this:
```
void* read_process_memory(vm_map_read_t task, mach_vm_address_t address, mach_vm_size_t size) {
vm_offset_t data;
mach_msg_type_number_t dataCnt;
kern_return_t ... | null | CC BY-SA 4.0 | null | 2023-03-04T18:18:47.600 | 2023-03-04T18:46:21.753 | 2023-03-04T18:46:21.753 | 18,013,692 | 18,013,692 | null |
75,637,708 | 1 | null | null | 0 | 5 | I am developing a Python Flask REST API service which should return NetworkX.MultiDiGraph to the caller of REST API over HTTP.
I tried converting the Graph to JSON using networkx.node_link_data(). However I get error "TypeError: Object of type LineString is not JSON serializable". Because the graph has "geometry" with ... | How to send NetworkX.MultiDiGraph gra[h data as HTTP Response | CC BY-SA 4.0 | null | 2023-03-04T18:20:06.677 | 2023-03-04T18:20:06.677 | null | null | 16,438,625 | [
"python-3.x",
"microservices",
"networkx",
"osmnx",
"graphml"
] |
75,637,713 | 1 | null | null | 0 | 3 | I need scheme like with telegram bots, omnichannel but with RC bot. People will ask questions to bot, and some stuff will answers them in omnichannel chats. Something like inner ticket system. There is some ready-to-use solution?
Googled, but strange for me, not even a single similar question.
| Is it possible to use Omnichannel feature through bot in your domain? | CC BY-SA 4.0 | null | 2023-03-04T18:20:42.983 | 2023-03-04T18:20:42.983 | null | null | 21,332,906 | [
"rocket.chat"
] |
75,637,707 | 1 | null | null | 0 | 18 | I'm trying to figure out why the color isn't changing when clicked on.
```
function click(node) {
var value = node.getAttribute('class') || '';
value = value === '' ? 'clicked' : '';
node.setAttribute('class', value);
alert("hi")
}
```
```
body {
background-color: rgb(255, 255, 255)
}
h1 {
background-color... | The <h1> text is not changing color when clicked like it should | CC BY-SA 4.0 | null | 2023-03-04T18:20:02.940 | 2023-03-04T18:34:51.930 | 2023-03-04T18:34:51.930 | 13,927,534 | 21,332,897 | [
"javascript",
"html",
"function"
] |
75,637,709 | 1 | null | null | -2 | 15 | In our java web application we are using tomcat jdbc connection pooling and mysql db. i have set the maxActiveConnection to 300 . from last few days connection frequently touches the max limit and goes down. checked the mysql show processlist. it shows all 300 connections are in sleep mode and .
so i have 2 issues now.... | Probable root cause of sleep queries and db name is information_schema in show processlist result | CC BY-SA 4.0 | null | 2023-03-04T18:20:18.850 | 2023-03-04T20:49:05.397 | null | null | 2,500,927 | [
"java",
"mysql",
"jdbc",
"connection-pooling"
] |
75,637,715 | 2 | null | 75,637,704 | 0 | null | [ctime(3) - Linux manual page](https://man7.org/linux/man-pages/man3/gmtime_r.3.html)
> tm_mon The number of months since January, in the range 0 to 11.
The offset is in the specification, so use `ptime->tm_mon + 1` as the month.
| null | CC BY-SA 4.0 | null | 2023-03-04T18:20:56.927 | 2023-03-04T18:20:56.927 | null | null | 4,062,354 | null |
75,637,714 | 1 | null | null | 0 | 8 | I've been following the cakephp4.0 CMS tutorial and have created a CMS. Now I have a peculiar case where I need to pass an argument to the login function in the UsersController
```
public function login($slug = null)
{
$this->Authorization->skipAuthorization();
$this->request->allowMethod(['get', 'post']);
... | How to pass a parameter to the cakephp login function? | CC BY-SA 4.0 | null | 2023-03-04T18:20:50.507 | 2023-03-04T18:20:50.507 | null | null | 21,332,884 | [
"cakephp"
] |
75,637,698 | 1 | null | null | 0 | 5 | I am trying to reproject my .h5 of INSAT LST to get an transformed mercator lat lon coordinates EPSG:4326.
I have used rio.reproject but not working, the reprojected lat lon are all weird , so the Central_Point_Coordinates Latitude for INSAT image is 81 deg so after reprojection, it seems to start from there. rio.repro... | Reprojection of INSAT geostationary .h5 file to EPSG:4326 | CC BY-SA 4.0 | null | 2023-03-04T18:18:22.907 | 2023-03-04T18:18:22.907 | null | null | 21,332,664 | [
"python",
"mapping",
"python-xarray",
"map-projections",
"rasterio"
] |
75,637,710 | 2 | null | 75,617,240 | 0 | null | I'm not sure if this is a typo in your sample code:
```
pop.Connect(host, port, SecureSocketOptions.None);
```
but that is wrong. Port 995 is the SSL port, so using `None` won't work - that can be used for plain-text connections. It tells MailKit not to use SSL at all.
What you want (if you are connecting to port 995... | null | CC BY-SA 4.0 | null | 2023-03-04T18:20:24.337 | 2023-03-04T18:20:24.337 | null | null | 87,117 | null |
75,637,719 | 2 | null | 75,604,078 | 0 | null | Those libraries in white are predefined in the metadata server. Since you already mentioned that you can right-click on the library and select Assign to use it, that means the resource is set up correctly and you have the necessary permissions to use the resource.
Instead of right-clicking, you can use the libname meta... | null | CC BY-SA 4.0 | null | 2023-03-04T18:21:39.417 | 2023-03-04T18:21:39.417 | null | null | 5,745,815 | null |
75,637,717 | 2 | null | 75,637,704 | 1 | null | The `tm_mon` field specifies the number of months since January, so for the month of March this field will have the value 2.
Also, your output has the day followed by the month because that's the order in which you're printing them.
To print the month correctly, and to print the month first, you want:
```
printf("The t... | null | CC BY-SA 4.0 | null | 2023-03-04T18:21:13.117 | 2023-03-04T18:21:13.117 | null | null | 1,687,119 | null |
75,637,720 | 2 | null | 75,636,986 | 2 | null | You could structure a recursive template in the following manner:
(This is just a bare metal example to illustrate the concept)
- render all comments under a post
```
{% if post.comments %}
{% for comment in post.comments.all %}
{% include 'recursive_comment.html' with comment=comment %}
{% endfor %}
{... | null | CC BY-SA 4.0 | null | 2023-03-04T18:21:43.653 | 2023-03-04T18:21:43.653 | null | null | 20,103,413 | null |
75,637,705 | 1 | null | null | 0 | 14 | I am unable to log into my application. I am using postman to post a request to my auth controller with username and password however I get the below error message. I recently upgraded from .net 5 to 6 and then to 7.
```
> System.InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identi... | System.InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.SignInManager`1 | CC BY-SA 4.0 | null | 2023-03-04T18:19:31.747 | 2023-03-04T20:10:32.163 | 2023-03-04T18:36:10.967 | 3,775,535 | 11,329,768 | [
"c#",
".net",
"asp.net-identity",
".net-7.0"
] |
75,637,722 | 1 | null | null | 1 | 35 | I have array data as below:
```
a = np.array([1.41607, 2.17922, -14.7047, -1852.51, -2713.39, -165.025])
```
`a` is a decimal number and I want to convert `a` to an integer number such as below:
```
a = [1, 2, -15, -1853, -2713, -165]
```
then after I convert `a` to an integer number, I want to restore the original d... | Convert integer to decimal and recover places after zero | CC BY-SA 4.0 | null | 2023-03-04T18:21:56.280 | 2023-03-04T18:47:29.170 | 2023-03-04T18:47:29.170 | 13,376,511 | 20,562,723 | [
"python"
] |
75,637,724 | 1 | null | null | 0 | 16 | I tried using color picker package but it isn't what i am looking for
i want to have something like this

| I am building a flutter desktop application, and i want to have a color picker on form just like this one | CC BY-SA 4.0 | null | 2023-03-04T18:22:05.173 | 2023-03-04T19:10:30.953 | 2023-03-04T19:10:30.953 | 10,157,127 | 13,443,285 | [
"flutter",
"colors",
"desktop"
] |
75,637,723 | 1 | null | null | -1 | 29 | I am reading on Dynamic Type and understand how for accessibility purposes, a user can adjust their font size in the system settings ( [https://developer.apple.com/documentation/uikit/uifont/scaling_fonts_automatically](https://developer.apple.com/documentation/uikit/uifont/scaling_fonts_automatically) ).
My question i... | SwiftUI: Confused about Dynamic Type and how to scale font sizes for screen size | CC BY-SA 4.0 | null | 2023-03-04T18:22:00.843 | 2023-03-04T18:22:00.843 | null | null | 21,062,470 | [
"ios",
"swift",
"swiftui"
] |
75,637,726 | 2 | null | 70,488,123 | 0 | null | Regarding rocksdb specifically, if you have the rocksdb share library that you link at build time in one directory, you can set `java.library.path` to include the directory, then the library will be loaded with its real filenames instead of a temporary one with random suffix.
| null | CC BY-SA 4.0 | null | 2023-03-04T18:22:24.640 | 2023-03-04T18:22:24.640 | null | null | 4,304,298 | null |
75,637,721 | 1 | null | null | 0 | 25 | trying to compile this AVR microprocessor source file Clion can't manage to load include files into the project
```
cmake_minimum_required(VERSION 3.23)
project(avr C)
set(CMAKE_C_STANDARD 99)
add_executable(avr main.c)
```
```
#include <avr/io.h> // stretch red line because clion can't find it
int main() {
r... | can't load cross compiler header files into main.c | CC BY-SA 4.0 | null | 2023-03-04T18:21:51.073 | 2023-03-04T18:21:51.073 | null | null | 19,205,129 | [
"c",
"cmake",
"clion",
"avr-gcc",
"toolchain"
] |
75,637,728 | 1 | null | null | 0 | 13 | i am going to create a booking app to allow customer make appointement.
I have identified two possibilities :
- -
With a database to register slot, customer etc. using transaction (i will use postgresql database)
Is realtime a necessity to ensure a slot cant be reserved twice ?
| Using real time or not for a booking app? | CC BY-SA 4.0 | null | 2023-03-04T18:22:48.690 | 2023-03-04T18:22:48.690 | null | null | 12,884,095 | [
"node.js",
"postgresql",
"web",
"websocket",
"real-time"
] |
75,637,725 | 1 | null | null | 1 | 8 | I have this form in Blazor:
```
<EditForm Model="testModel" OnSubmit="@(() => { var a = testModel.color; StateHasChanged(); })">
<DataAnnotationsValidator />
<ValidationSummary />
@*<InputText @bind-Value="@testModel.Clolor" type="color"></InputText>*@
<RadzenColorPicker @bind-Value="testModel.Colo... | Make RadzenColorPicker work with Native validation | CC BY-SA 4.0 | null | 2023-03-04T18:22:10.903 | 2023-03-04T18:31:58.907 | 2023-03-04T18:31:58.907 | 737,453 | 737,453 | [
"blazor",
"radzen"
] |
75,637,716 | 1 | null | null | 1 | 20 | I have 2 processes (applications both written in C++) and I want to achieve the following functionality:
1. First process (server application) will receive some data from a source (in my case, informations regarding some signals from CAN BUS). This application will compute these details in a struct with different memb... | Cannot receive properly serialized struct with nlohmann::json via named pipes | CC BY-SA 4.0 | null | 2023-03-04T18:21:03.710 | 2023-03-04T20:43:31.137 | 2023-03-04T20:43:31.137 | 1,625,187 | 12,892,622 | [
"c++",
"unix",
"serialization",
"pipe",
"ipc"
] |
75,637,718 | 1 | null | null | 0 | 20 | I want to use custom `startDestination` but I am getting error. I am giving a `INITIAL` value on `currentRoute` but it throw exception.
```
class MainActivity : ComponentActivity() {
val viewModel: MainActivityViewModel by viewModels()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreat... | How to use custom start navigation in jetpack compose | CC BY-SA 4.0 | null | 2023-03-04T18:21:17.850 | 2023-03-04T18:21:17.850 | null | null | 8,266,651 | [
"android",
"kotlin",
"android-jetpack-compose",
"android-jetpack-navigation",
"jetpack-compose-navigation"
] |
75,637,730 | 1 | null | null | 0 | 20 | 
I need no space between the lines. Code:
```
from PyQt6.QtWidgets import *
from PyQt6 import QtCore, QtGui
from PyQt6.QtGui import *
from PyQt6.QtCore import *
import sys
class Window(QWidget):
def __init__(self):
super(... | How to remove empty space in GridLayout | CC BY-SA 4.0 | null | 2023-03-04T18:22:55.813 | 2023-03-04T18:57:23.793 | 2023-03-04T18:54:01.450 | 6,622,587 | 20,984,277 | [
"python",
"pyqt6"
] |
75,637,733 | 1 | null | null | 0 | 15 | My program is not working as expected i can't find the bug. It tends to happen when I get to the const calculateSleepDebt line or after. Basically the calculateSleepDebt function isn't working.
```
const getSleepHours = day => {
switch (day) {
case "monday":
return 8;
break;
case "tuesday":
re... | Please debug this short Javascript project. My calculateSleepDebt function isn't working | CC BY-SA 4.0 | null | 2023-03-04T18:23:29.327 | 2023-03-04T18:23:29.327 | null | null | 20,861,499 | [
"javascript",
"function",
"if-statement",
"debugging",
"constants"
] |
75,637,735 | 1 | null | null | 0 | 9 | I am using webflow and I am trying to embed a Loom video and want it to loop like a gif. This is the code I am using but it doesn't loop the video:
```
<div style="position: relative; padding-bottom: 64.20927467300832%; height: 0;"><iframe src="https://www.loom.com/embed/01930ddb6fd046e8b3c28dadb88ee783?&loop=1&hide_ow... | How to get an embedded Loom video to loop? | CC BY-SA 4.0 | null | 2023-03-04T18:23:33.780 | 2023-03-04T18:40:32.093 | 2023-03-04T18:40:32.093 | 168,986 | 21,332,904 | [
"video",
"mp4",
"webflow",
"embedded-video"
] |
75,637,734 | 1 | null | null | 0 | 23 | I'm trying to calculate the Jaccard index for my data, which is for two presence/absence rasters (of two different species). I also have a third raster, that contains the overlap of the species ranges.
I want to calculate the Jaccard index, and have tried the code below
```
g1_binary <- as.integer(pg1_rast > tr1)
pg3_b... | Jaccard index: R not letting me convert raster to numeric? | CC BY-SA 4.0 | null | 2023-03-04T18:23:31.480 | 2023-03-05T01:27:26.300 | null | null | 20,609,531 | [
"r",
"raster",
"sf",
"r-raster",
"geo"
] |
75,637,731 | 2 | null | 39,923,838 | 0 | null | You can configure a failover setup for the Stomp broker relay in Spring by using the RelayConnectionFactory and setting the failover transport option to the list of failover brokers.
Here's an example configuration that uses the RelayConnectionFactory with failover transport:
```
@Configuration
@EnableWebSocketMessageB... | null | CC BY-SA 4.0 | null | 2023-03-04T18:22:56.727 | 2023-03-04T18:22:56.727 | null | null | 4,388,228 | null |
75,637,738 | 1 | 75,638,000 | null | 0 | 31 | I have a text string, , containing the complete code for a python module. I know I could write the code to a local file and import it with the following:
```
with open("codemod.py","w") as f:
f.write(code)
import codemod as cm
```
Is there a way do this directly from the string creating a local file? Perhaps us... | How can I mimic Python's "import .. as" with code from a text string | CC BY-SA 4.0 | null | 2023-03-04T18:23:36.963 | 2023-03-04T19:03:29.477 | null | null | 1,487,326 | [
"python",
"import",
"python-importlib"
] |
75,637,737 | 1 | null | null | 0 | 19 | This is my code:
```
// Listen for button click
const filter = i => i.customId === 'verification:start' && i.user.id === interaction.user.id;
const collector = message.createMessageComponentCollector(filter, { time: 30000 });
collector.on('collect', async i => {
try {
// Check if user has already been verified
... | The listener does NOT stop! || Discord.js V.14 | CC BY-SA 4.0 | null | 2023-03-04T18:23:35.800 | 2023-03-04T18:23:35.800 | null | null | 21,159,775 | [
"javascript",
"discord.js"
] |
75,637,729 | 2 | null | 75,636,883 | 1 | null | Simply adapt the approach from [last post](https://stackoverflow.com/a/75636215/14460824) and scrape the categories first to map them while scraping the data:
```
categories = dict((e.get('data-filter-category-id'),e.get('data-filter-category-name')) for e in soup.select('.dropdown-menu a[data-filter-category-name]'))
... | null | CC BY-SA 4.0 | null | 2023-03-04T18:22:55.850 | 2023-03-04T18:31:13.380 | 2023-03-04T18:31:13.380 | 14,460,824 | 14,460,824 | null |
75,637,739 | 1 | null | null | 0 | 5 | I use this dropdown to list top gaining stocks for the selected date.
```
dcc.Dropdown(
id='dropdown7',
options=[{'label': i, 'value': i} for i in df_dh],
value=df_dh.iloc[0],
placeholder=df_dh.iloc[0],
clearable=False)
```
Callback function ret... | Dash Datatable: Get active cell from a datatable which is connected to a dropdown as output | CC BY-SA 4.0 | null | 2023-03-04T18:23:41.583 | 2023-03-04T18:23:41.583 | null | null | 17,730,110 | [
"python",
"callback",
"plotly-dash"
] |
75,637,736 | 2 | null | 75,637,707 | 2 | null | In the inline event handler, `click` refers to the `click` function of the `<h1>` element itself (see [HTMLElement#click](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click)). Either rename your function or use the modern `addEventListener` instead.
```
document.querySelectorAll('h1').forEach(h1 => h1.a... | null | CC BY-SA 4.0 | null | 2023-03-04T18:23:34.540 | 2023-03-04T18:23:34.540 | null | null | 9,513,184 | null |
75,637,744 | 2 | null | 75,479,995 | 0 | null | In answer to my own question: the hetprobit function in package glmx allows you to "model" the sd/variance as a linear function of covariates, which is what I was looking for. The function (despite the name) also allows a logit specification.
| null | CC BY-SA 4.0 | null | 2023-03-04T18:24:07.877 | 2023-03-04T18:24:07.877 | null | null | 5,589,727 | null |
75,637,742 | 1 | null | null | 0 | 7 | [https://neil.fraser.name/software/diff_match_patch/demos/diff.html](https://neil.fraser.name/software/diff_match_patch/demos/diff.html)
Enter parameters in this demo page
# Example 1
> Text Version 1 = , Text Version 2 = Result: 001
# Example 2
> Text Version 1 = , Text Version 2 = Result: 01
And exampl... | A problem when using Google Diff Match Patch,The match position is unexpected | CC BY-SA 4.0 | null | 2023-03-04T18:23:54.727 | 2023-03-04T18:36:53.427 | 2023-03-04T18:36:53.427 | 20,461,337 | 20,461,337 | [
"google-diff-match-patch"
] |
75,637,748 | 2 | null | 75,637,396 | 1 | null | just use a online website to do it. if you need any help than please ask me again in the comment
| null | CC BY-SA 4.0 | null | 2023-03-04T18:24:18.410 | 2023-03-04T18:24:18.410 | null | null | 21,235,227 | null |
75,637,727 | 2 | null | 75,636,883 | 2 | null | To add parent category column to the dataframe you can use next example:
```
import pandas as pd
import requests
from bs4 import BeautifulSoup
url = "https://takipcimerkezi.net/services"
soup = BeautifulSoup(requests.get(url).content, "html.parser")
all_data = []
for tr in soup.select("tr:not(:has(td[colspan], th))"... | null | CC BY-SA 4.0 | null | 2023-03-04T18:22:41.183 | 2023-03-04T20:24:30.380 | 2023-03-04T20:24:30.380 | 10,035,985 | 10,035,985 | null |
75,637,743 | 1 | null | null | 0 | 29 | I want to select the first one among the active ones of the slick slider.
Even if you want to use nth-child , it is not a choice because of other things.
Let me show you with a picture:
[enter image description here](https://i.stack.imgur.com/WlAuh.png)
thank you very much....
---
I tried the part you said, but it l... | I want to select the first and last of the active classes in the slick slide | CC BY-SA 4.0 | null | 2023-03-04T18:23:56.810 | 2023-03-04T20:44:10.573 | 2023-03-04T18:47:09.387 | 21,309,656 | 21,309,656 | [
"javascript",
"reactjs",
"react-slick"
] |
75,637,747 | 2 | null | 73,874,917 | 0 | null | Faced the same issue when working inside a Next.js project. The problem occured when one branch of the project was using v1 and the other branch had already switched to v2.
Solved by removing `.next` folder, seems that there is a caching problem.
| null | CC BY-SA 4.0 | null | 2023-03-04T18:24:17.000 | 2023-03-04T18:24:17.000 | null | null | 6,423,035 | null |
75,637,751 | 2 | null | 67,578,189 | 0 | null | Worked for me close all android studio tabs, after open a cmd as admin, go to your folder (if the command requires it) and execute the command again
| null | CC BY-SA 4.0 | null | 2023-03-04T18:24:23.550 | 2023-03-04T18:24:23.550 | null | null | 15,541,914 | null |
75,637,749 | 2 | null | 75,637,658 | -3 | null | I have discovered the error I have made.
The function assumes that the first element of the array is at index 1, which is the case for Delphi but not for some other programming languages. If the array is zero-indexed, the function will not process the first element correctly.
```
for e := 0 to y-1 do
begin
fTotal := ... | null | CC BY-SA 4.0 | null | 2023-03-04T18:24:18.960 | 2023-03-04T18:24:40.820 | 2023-03-04T18:24:40.820 | 16,937,657 | 16,937,657 | null |
75,637,746 | 1 | null | null | 0 | 8 | We store a table for projects from a platform (eg gitlab), this is the schema (project id (in gitlab: 1, 2, 3) INT , project data ...)
and we query the database by the user's set of project ids using (IN), for example, SELECT * from table where project id IN (1, 2, 3)
The project data is huge and the projects no also i... | Redesigning database that will break key uniqueness | CC BY-SA 4.0 | null | 2023-03-04T18:24:14.920 | 2023-03-04T18:24:14.920 | null | null | 3,093,403 | [
"database-design"
] |
75,637,752 | 2 | null | 75,637,681 | 0 | null | i found this which may help: [https://bobcares.com/blog/pty-allocation-request-failed-on-channel-0/](https://bobcares.com/blog/pty-allocation-request-failed-on-channel-0/)
it seems that this is a common ssh error about virtual terminals. you may have to use WSL in some manner. I'm not really sure how this would work on... | null | CC BY-SA 4.0 | null | 2023-03-04T18:24:34.163 | 2023-03-04T18:24:34.163 | null | null | 16,569,984 | null |
75,637,755 | 2 | null | 6,959,817 | -1 | null | below is an array of ordered keys you need first. Remaining keys will be added in the existing sequence
```
function orderKeys(obj, keysInOrder) {
let newObj = {};
for (key of keysInOrder)
if (Object.keys(obj).includes(key) && !Object.keys(newObj).includes(key))
newObj[key] = obj[key];
for (key of Obje... | null | CC BY-SA 4.0 | null | 2023-03-04T18:25:30.433 | 2023-03-05T00:12:50.107 | 2023-03-05T00:12:50.107 | 11,381,511 | 11,381,511 | null |
75,637,756 | 2 | null | 54,090,371 | 0 | null | This: [noisereduce](https://pypi.org/project/noisereduce/) allows for a wide range of filtering you can apply to your raw audio data before saving to stream/file. However the previous answers aren't wrong. Augmenting the audio stream is always a bit 'hacky'.
| null | CC BY-SA 4.0 | null | 2023-03-04T18:25:30.747 | 2023-03-04T18:25:30.747 | null | null | 4,400,677 | null |
75,637,753 | 2 | null | 1,814,692 | 0 | null | To change color of the header with keeping the text vertically centered you can do this:
You can hook the DrawColumnHeader of listView like this:
```
listView1.DrawColumnHeader += new DrawListViewColumnHeaderEventHandler(listView1_DrawColumnHeader);
```
then the event will look like:
```
private void listView1_DrawCol... | null | CC BY-SA 4.0 | null | 2023-03-04T18:24:50.407 | 2023-03-04T18:24:50.407 | null | null | 18,372,367 | null |
75,637,758 | 2 | null | 75,637,645 | 0 | null | With `MODPLUG_EXPORT` you promise to define and export `m_nMaxMixChannels` in the DLL. The linker trusts your promise and can't find that symbol in the DLL, although it unlikely will use the exported symbol, since it's inline, but the export agreement is broken.
Be careful with exporting inline declarations. Either don... | null | CC BY-SA 4.0 | null | 2023-03-04T18:25:48.927 | 2023-03-04T18:25:48.927 | null | null | 6,752,050 | null |
75,637,754 | 2 | null | 75,545,114 | 0 | null | To create tilted, vertical text for ticks on your X axis, you can use ImPlot's custom tick label formatting feature.
First, define a custom formatting function that takes a const char* label and returns a struct with the formatted label and the desired rotation angle:
```
ImPlot::ImPlotTick MyTickLabelFormatter(const ... | null | CC BY-SA 4.0 | null | 2023-03-04T18:24:52.560 | 2023-03-04T18:24:52.560 | null | null | 4,667,109 | null |
75,637,763 | 2 | null | 75,166,717 | 1 | null | Go to your project settings, go to targets and tap on the target, now scroll down and click on Supported Intents, do you see your there? If not, then add it by simply entering its name.
Image
[](https://i.stack.imgur.com/Ok0aG.png)
| null | CC BY-SA 4.0 | null | 2023-03-04T18:26:26.217 | 2023-03-04T18:26:26.217 | null | null | 19,760,896 | null |
75,637,761 | 2 | null | 75,637,257 | 0 | null | Assuming the relevant HTML of the element being:
```
<input name="voucher" ...>
```
To send a to the element instead of [presence_of_element_located()](https://stackoverflow.com/a/57313803/7429447) you need to induce [WebDriverWait](https://stackoverflow.com/a/59130336/7429447) for the [element_to_be_clickable()](htt... | null | CC BY-SA 4.0 | null | 2023-03-04T18:26:06.490 | 2023-03-04T18:26:06.490 | null | null | 7,429,447 | null |
75,637,766 | 2 | null | 75,634,680 | 0 | null | I'd still recommend you to use `PSWindowsUpdate` which is much more reliable.
```
Install-Module PSWindowsUpdate
```
```
Get-WindowsUpdate -AcceptAll -Install -AutoReboot
```
```
Get-WindowsUpdate -Install -KBArticleID 'KB5021200'
```
You can manually download the module from [PS Gallery](https://www.powershellga... | null | CC BY-SA 4.0 | null | 2023-03-04T18:27:11.157 | 2023-03-04T18:27:11.157 | null | null | 4,831,435 | null |
75,637,741 | 1 | null | null | 1 | 20 | I have issues with getting correct response in my app written in angular.
I start from scratch to explain it in the best way as I can.
I've got that model called Attraction in my backend (C#):
```
namespace Sunny_Apartment.Entities
{
public class Attraction
{
public int Id { get; set; }
public s... | How to read data from my api call to MongoDB in angular | CC BY-SA 4.0 | null | 2023-03-04T18:23:53.173 | 2023-03-04T23:57:35.897 | null | null | 7,156,513 | [
"angular",
"mongodb",
"api",
"observable"
] |
75,637,768 | 1 | null | null | 0 | 29 | I am loading CSV files to Redshift. I first run the `COPY` command to a staging table, then normalize the account data into a separate lookup table.
```
BEGIN;
INSERT INTO AccountLookup (Account)
SELECT DISTINCT Account FROM Staging db
WHERE NOT EXISTS (SELECT 1 FROM AccountLookup acct WHERE acct.Account = ... | Redshift duplicate records | CC BY-SA 4.0 | null | 2023-03-04T18:27:35.093 | 2023-03-05T05:20:13.083 | 2023-03-04T23:07:37.170 | 174,777 | 16,034,567 | [
"sql",
"amazon-web-services",
"amazon-redshift"
] |
75,637,765 | 1 | null | null | 0 | 13 | I have been trying to create a daily kriged map of the 24-hour PM2.5 values available through a dataset using R. It should give 61 maps as an output. Through the code below I was able to get the data points for the 61 maps. However, it is showing only one map in leaflet format. I am not sure where I am going wrong. Any... | R spatial analysis - Problem with creating daily kriged maps using for loop | CC BY-SA 4.0 | null | 2023-03-04T18:26:47.130 | 2023-03-04T18:52:36.993 | 2023-03-04T18:52:36.993 | 2,761,575 | 21,332,823 | [
"r",
"spatial"
] |
75,637,762 | 1 | 75,638,353 | null | 2 | 27 | I have an artisan command (Laravel 10) that makes a change to the user table in the database. I can confirm that the change is happening with output from the command itself, and it looks like it's actually working.
However, when I run the unit test, it does not see the updated database change.
#### Unit Test
```
pub... | Laravel 10 Unit Test does not see DB change from Artisan Command | CC BY-SA 4.0 | null | 2023-03-04T18:26:11.940 | 2023-03-04T20:11:04.047 | 2023-03-04T19:50:48.690 | 1,998,801 | 126,582 | [
"php",
"laravel",
"testing",
"tdd",
"laravel-artisan"
] |
75,637,769 | 2 | null | 75,637,529 | 1 | null | First time I use the `modules` package. One option would be to pass your dataset from the global environment as an argument.
To this end add `purchases` as an argument ot the server function in `server_code.R`:
```
server_summary <- function(id, purchases){
moduleServer(id, function(input, output, session){
compr... | null | CC BY-SA 4.0 | null | 2023-03-04T18:27:43.853 | 2023-03-04T18:27:43.853 | null | null | 12,993,861 | null |
75,637,772 | 1 | null | null | 0 | 23 | I have the model below, which includes the subject name and other values.
```
class SubjectModel{
String chapter;
String lesson;
// more values
}
```
I'm getting data as a list `List<SubjectModel> subjects`. To receive results depending on the `chapter` and `lesson`, I need to filter (search) the list. I w... | Dart how to search a list with different values | CC BY-SA 4.0 | null | 2023-03-04T18:28:25.073 | 2023-03-04T19:14:29.497 | null | null | 13,362,666 | [
"flutter",
"dart"
] |
75,637,774 | 1 | 75,637,975 | null | -2 | 57 | Given two arrays.
```
array_1 = [1, 4, 5, 8, None, None, None]
array_2 = [7, 4, 8, 9, 5, None, None]
```
output:
```
array_3 = [1, 4, 10, 17, 8, 4, 7]
```
It will start from the first element of the first array and the last element of the second array and return the sum of them.
For example, `(1+None)= 1`, `(4+None)=... | How can I solve this problem without any built-in function except len()? | CC BY-SA 4.0 | null | 2023-03-04T18:28:51.903 | 2023-03-05T03:54:51.117 | 2023-03-04T18:42:09.150 | 17,589,606 | 17,589,606 | [
"python"
] |
75,637,770 | 1 | null | null | 0 | 16 | I have an e-commerce project and I stuck at admin view.
I have 2 models, namely Order and OrderItem. They are connected with FK relationship, and when Order is created I create both Order and related OrderItems in my admin page.
Orders in admin page:
[](https://i.stack.imgur.com/9seBT.png)
OrderItems in admin page:
[](... | Django relation of models | CC BY-SA 4.0 | null | 2023-03-04T18:27:52.187 | 2023-03-04T19:02:31.653 | null | null | 14,270,853 | [
"python",
"django",
"django-models",
"django-modeladmin",
"django-model-field"
] |
75,637,693 | 2 | null | 75,637,415 | 1 | null | Creating this from code alone would be challenging. If you have a vector program that enables export to .svg, the easiest way to do this is to create the illustration then export the HTML as an .svg file. You can use CSS to alter the color .svg to preference. Here is an example of what the syntax would look like.
```
<... | null | CC BY-SA 4.0 | null | 2023-03-04T18:17:05.550 | 2023-03-04T18:17:05.550 | null | null | 11,887,641 | null |
75,637,776 | 1 | null | null | 0 | 16 | I am trying to write a formula that will insert data into a column based on the conditions of >= one date but less than another date. I am trying to use a countif command.
In the sample spreadsheet ( see Image) I want the data from A14:A19 to appear in column A on March 7th, then column B on March 14th, C on March 21st... | Excel - Countif Command Data parameter condition | CC BY-SA 4.0 | null | 2023-03-04T18:29:05.800 | 2023-03-04T18:29:05.800 | null | null | 21,332,928 | [
"excel",
"countif"
] |
75,637,778 | 2 | null | 75,637,722 | 0 | null | This is impossible. Once you convert a float to an integer, there is no going back. You can convert the integer back into a float, but you won't get back any of the decimal places you had before.
This is because you're using a function that loses information. In your case, you used `np.round()`. `np.round()` tells the ... | null | CC BY-SA 4.0 | null | 2023-03-04T18:29:22.460 | 2023-03-04T18:38:16.310 | 2023-03-04T18:38:16.310 | 13,376,511 | 13,376,511 | null |
75,637,767 | 1 | null | null | 0 | 12 |
## Problem
I am trying to use `public` in a `SSG`.
There have been quite a few discussions on Github about introducing the possibility to use the `next/image` for image optimization at build time. However, at this moment, the `next/image` component does not work with the static site export.
See: [https://github.com/... | Next.js SSG Image Optimization at Build Time | CC BY-SA 4.0 | null | 2023-03-04T18:27:20.677 | 2023-03-04T18:27:20.677 | null | null | 20,327,791 | [
"javascript",
"html",
"reactjs",
"webpack",
"next.js"
] |
75,637,775 | 1 | 75,637,839 | null | 0 | 20 | I have a simple API endpoint server function that imitates an authorization POST request:
```
/** @type {import('./$types').RequestHandler} */
import { json, error } from '@sveltejs/kit'
export async function POST({ request }) {
const data = await request.json()
if (!data.username || !data.password) {
... | SvelteKIt: getting an error "Handler should return a response", though I am returning one? | CC BY-SA 4.0 | null | 2023-03-04T18:28:59.077 | 2023-03-04T18:50:04.227 | null | null | 14,539,223 | [
"httprequest",
"svelte",
"sveltekit"
] |
75,637,779 | 2 | null | 67,129,530 | 0 | null | A slight update to ritche46's answer. As Robert stated, the vector needs to be changed to an iterator. And it looks like we should use `from` now instead of `new`? I've not executed the code below, but it compiles.
```
...
let myschema = Schema::from(
vec![
Field::new("sepal_length",... | null | CC BY-SA 4.0 | null | 2023-03-04T18:29:25.057 | 2023-03-04T18:29:25.057 | null | null | 2,108,441 | null |
75,637,783 | 2 | null | 75,637,310 | 0 | null | Just filter data what columns you want and remove if all columns are 0.
```
df = df[['lesbian', 'gay', 'bisexual', 'transgender', 'trans','queer', 'lgbt', 'lgbtq', 'homosexual', 'straight','heterosexual']['A', 'B']]
df = df[~(df == 0).all(axis=1)]
```
| null | CC BY-SA 4.0 | null | 2023-03-04T18:30:01.553 | 2023-03-04T18:30:01.553 | null | null | 20,837,323 | null |
75,637,782 | 2 | null | 75,637,533 | 0 | null | The NPM module [stream-pair](https://www.npmjs.com/package/stream-pair) implements this with two `Side` duplex classes which pass data on a child property, `other`.
| null | CC BY-SA 4.0 | null | 2023-03-04T18:29:55.900 | 2023-03-04T18:29:55.900 | null | null | 14,133,230 | null |
75,637,781 | 2 | null | 75,637,310 | 1 | null | Here's a way to do what I believe your question asks:
```
dfNew = (
df[['lesbian', 'gay', 'bisexual', 'transgender', 'trans','queer', 'lgbt', 'lgbtq', 'homosexual', 'straight','heterosexual']]
.pipe(lambda x: x[x.gt(0).any(axis=1)]) )
```
Sample input:
```
TOXICITY lesbian gay bisexual transgender trans ... | null | CC BY-SA 4.0 | null | 2023-03-04T18:29:54.613 | 2023-03-04T18:29:54.613 | null | null | 18,135,454 | null |
75,637,780 | 1 | null | null | 0 | 14 | I have `Asus Vivobook X412DA` with Windows 11. While opening BIOS, I realized the UI looked old but I have already updated it to the latest version by the MyAsus app.
[](https://i.stack.imgur.com/UlaKD.png)
When I searched on this I found out that there are 2 types of BIOS:
- -
Now my BIOS UI looked old, so it must ha... | Why my BIOS is being strangely behaving as both Legacy and UEFI? | CC BY-SA 4.0 | null | 2023-03-04T18:29:31.370 | 2023-03-04T18:53:19.867 | 2023-03-04T18:45:39.073 | 14,739,495 | 14,739,495 | [
"windows",
"bios"
] |
75,637,777 | 2 | null | 75,636,873 | 0 | null | Question was: How to sort 1 column in the python matrix in ascending order by bubble?
- using the as the format, you should set the
umn to the value of the . That part should be 'fixed' during the sorting algorithm.- using bubble sort, the end condition 'sorted', is when there is no longer a swap
needed in bubble loop... | null | CC BY-SA 4.0 | null | 2023-03-04T18:29:08.740 | 2023-03-04T18:29:08.740 | null | null | 21,291,099 | null |
75,637,771 | 2 | null | 75,637,741 | 0 | null | n your AttractionService, you should map the response from the backend API to an array of Attraction objects, and then return an observable of this array. Here's an updated version of your AttractionService:
```
@Injectable({
providedIn: 'root'
})
export class AttractionService {
constructor(private http: HttpClie... | null | CC BY-SA 4.0 | null | 2023-03-04T18:28:21.173 | 2023-03-04T23:57:35.897 | 2023-03-04T23:57:35.897 | 4,388,228 | 4,388,228 | null |
75,637,790 | 2 | null | 75,637,446 | 0 | null | Your code is almost correct, except the unneccessary ',' after 'a.*', which would cause compile error. Assume table2 has 3 columns (col_a, col_b, col_c), the hive SQL can be written as
```
table1 AS (
SELECT a.col_a, a.col_b, a.col_c
from
(SELECT m.col_a,m.col_b,m.col_c,
RANK() OVER (PARTITION BY rating_agenc... | null | CC BY-SA 4.0 | null | 2023-03-04T18:32:10.237 | 2023-03-04T18:32:10.237 | null | null | 21,309,701 | null |
75,637,784 | 2 | null | 75,636,813 | 1 | null | A naive `lead/lag()` method will work here without requiring any joins. It does require that there be three rows in the matching "group" of rows.
```
with data as (select *, 23587462 as PATTERN from T), grp as (
select *,
case PATTERN
when lead(Pattern_ID) over (partition by Machine_ID order by ... | null | CC BY-SA 4.0 | null | 2023-03-04T18:30:08.147 | 2023-03-04T20:36:39.213 | 2023-03-04T20:36:39.213 | 1,322,268 | 1,322,268 | null |
75,637,786 | 1 | null | null | -3 | 35 | For some reason, my program isn't printing `")"` even though it is part of my output statement:
```
cout << " Approximate location: (" << loc.first << ", " << loc.second << ")" << endl;
```
Since my program doesn't output the closing parentheses, my output differs from the correct output:
[](https://i.stack.imgur.com/... | Part of cout statement not printing in C++ | CC BY-SA 4.0 | null | 2023-03-04T18:30:56.430 | 2023-03-04T21:49:35.143 | 2023-03-04T21:49:35.143 | 65,863 | 21,008,095 | [
"c++",
"debugging",
"cout"
] |
75,637,793 | 2 | null | 75,636,926 | 1 | null | Assuming you want to lookup the combobox value in the 1st table column and return the value in the 6th.
```
Private Sub ComboBox2_Change()
Dim rng As Range
With ActiveWorkbook.Worksheets("sheet2")
Set rng = .ListObjects("Table1").DataBodyRange
Me.TextBox6.Value = Application.WorksheetFunction.X... | null | CC BY-SA 4.0 | null | 2023-03-04T18:32:35.123 | 2023-03-04T18:32:35.123 | null | null | 12,704,593 | null |
75,637,788 | 1 | null | null | -2 | 54 | I was trying to use the [olcConsoleGameEngine](https://github.com/OneLoneCoder/Javidx9/tree/master/ConsoleGameEngine), and got this error while trying to compile the "Racing lines" program from the repository:
```
C:\Users\Max\Desktop\Programming\C\C++\test>g++ -c ./src/main.cpp -I"src/include" -DUNICODE
In file inclu... | Error "'memset' is not a member of 'std'" in g++ | CC BY-SA 4.0 | null | 2023-03-04T18:31:38.860 | 2023-03-04T21:47:22.750 | 2023-03-04T21:47:22.750 | 65,863 | 21,332,937 | [
"c++",
"compiler-errors"
] |
75,637,792 | 2 | null | 75,636,865 | 0 | null | To display circle markers with different colors based on magnitude value data, you need to define a color scale first.
You can define a color ramp like below:
```
var color_scale = d3.scaleLinear()
.domain([2, 5, 8])
.range(['green', 'yellow', 'red']);
```
Now, You can use these color scale values to set the fill... | null | CC BY-SA 4.0 | null | 2023-03-04T18:32:34.570 | 2023-03-04T20:57:46.020 | 2023-03-04T20:57:46.020 | 3,443,037 | 3,443,037 | null |
75,637,787 | 1 | null | null | 0 | 12 | I'm very new to Unity (it hasn't been a full week since I started).
For my first project I have decided to create a small game for mobile. It's kind of a way to get warm with the engine and eventually do something bigger.
Anyway, I'm trying to do the following (and I try my best to explain it as good as possible):
The ... | Unity2D - Side scroller: Teleport player a fixed distance inside a predefined "cone" (Katan Zero style)? | CC BY-SA 4.0 | null | 2023-03-04T18:31:09.050 | 2023-03-04T23:51:46.330 | null | null | 21,332,860 | [
"c#",
"2d",
"dashing",
"teleport"
] |