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,630,591 | 1 | 75,630,738 | null | 0 | 32 | When I made this post request with postman it works fine but in this case my django server shows two requests are made and data is also logged twice. I am using jwt tokens if it is related somehow ...
```
const controller = new AbortController();
const [isLoading , setIsLoading] = useState(true)
const [userData... | Axios making double post request while loading page | CC BY-SA 4.0 | null | 2023-03-03T18:19:27.777 | 2023-03-03T19:35:38.580 | null | null | 16,041,078 | [
"javascript",
"reactjs",
"react-hooks",
"axios",
"jwt"
] |
75,630,594 | 2 | null | 75,630,118 | 2 | null | You can use `combn` with an `lapply` over the prefixes.
```
lapply(c('', 'standardized_', 'log_'), \(z) {
combn(c('psavert', 'psavert_l1', 'unemploy'), 2, FUN=\(x)
reformulate(paste0(z, x), 'uempmed'), simplify=FALSE)
})
# [[1]]
# [[1]][[1]]
# uempmed ~ psavert + psavert_l1
# <environment: 0x55c229491980>
# ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:20:04.820 | 2023-03-03T18:20:04.820 | null | null | 6,574,038 | null |
75,630,595 | 2 | null | 60,459,527 | 1 | null | Hello I also stuck on this problems and I find this questions so finally I solve it. when you directly add active=True in Checkbox its create problems so what I did here:
```
CheckBox:
id: private_party_checkbox
pos_hint: {"top": .83, "center_x": 0.5}
size_hint: 0.05,0.05
def on_start(self):
self.root.... | null | CC BY-SA 4.0 | null | 2023-03-03T18:20:09.230 | 2023-03-03T18:20:09.230 | null | null | 20,546,821 | null |
75,630,592 | 1 | null | null | -3 | 39 | I have a number field where the user enters a number, for example 18. I want that number to be automatically incremented every month by +1. For Example: If the number is 18 now, then it should be automatically 19 after one month.
The number is collected through input[type="number"] element and will be displayed on the ... | How to auto-increment a number once every month in mySQL? | CC BY-SA 4.0 | null | 2023-03-03T18:19:36.417 | 2023-03-03T19:28:33.623 | 2023-03-03T19:28:33.623 | 5,389,997 | 21,250,036 | [
"mysql",
"wordpress"
] |
75,630,596 | 2 | null | 75,630,191 | 0 | null | Disclaimer: I'm not familiar with that MDM system at all, but here are some suggestions.
Unless your MDM has another way to set that up, to run tasks periodically, you probably would need to setup a cron job. See [this answer](https://stackoverflow.com/questions/14710257/running-a-cron-job-at-230-am-everyday) for instr... | null | CC BY-SA 4.0 | null | 2023-03-03T18:20:23.333 | 2023-03-03T18:20:23.333 | null | null | 13,002,482 | null |
75,630,601 | 1 | null | null | 0 | 6 | I created a form using the Webform module for Drupal. It contains an option field with which you can register for one of the listed events. But sometimes it is the case that there is currently NO date for future events. In this case, instead of the radio button, a markup text "There is no data available at the moment."... | Drupal Webform Module: Best practice if an options field has currenctly no options and markup should be showed instead | CC BY-SA 4.0 | null | 2023-03-03T18:21:15.620 | 2023-03-03T18:21:15.620 | null | null | 1,786,285 | [
"drupal",
"drupal-webform"
] |
75,630,605 | 1 | null | null | -1 | 51 | Is there a Microsoft Excel formula which returns a cell value for the last cell that is located in a specific column and in the same time intersects rows with a given name?
| Excel formula which returns the cell value for the intersection of rows with specific name and specific column? | CC BY-SA 4.0 | null | 2023-03-03T18:21:34.603 | 2023-03-04T16:34:12.210 | null | null | 4,279,419 | [
"excel",
"excel-formula"
] |
75,630,587 | 1 | null | null | 0 | 40 | We are upgrading our solution to .NET 6 and everything is going smoothly but with our API we are running into a bit of an issue. I have the API building and running, but our front end is getting a 404 response and I can't seem to figure out the issue.
As you can see, I’ve tried a handful of common fixes to no avail. At... | .NET Core 2.2 API Upgraded to .NET 6 Returning Only 404 Response | CC BY-SA 4.0 | null | 2023-03-03T18:19:10.047 | 2023-03-03T18:53:03.403 | 2023-03-03T18:26:26.307 | 7,164,507 | 7,164,507 | [
"c#",
"asp.net-core-webapi",
".net-6.0"
] |
75,630,598 | 2 | null | 75,621,228 | 0 | null | You can use `sf::st_segmentize()` to add points, though it might get bit tricky -- coordinate system is taken into account, so for lines that follow parallels, latitude values will not remain constant (check the example bellow how `Y` is changing).
When segmentizing a shape without CRS, coordinates work as on a Cartesi... | null | CC BY-SA 4.0 | null | 2023-03-03T18:20:59.323 | 2023-03-03T18:20:59.323 | null | null | 646,761 | null |
75,630,606 | 2 | null | 75,630,605 | 0 | null | Generic formula expression:
```
=LOOKUP(2,1/(<row_header_range>=<string_value>)*(<column_range><>""),<column_range>)
```
and the example (in Ukrainian locale, where `,` is replaced by `;`:
```
=LOOKUP(2;1/((A:A="Row_name")*(H:H<>""));H:H))
```
`LOOKUP` function searches for the last non-empty cell in the column, base... | null | CC BY-SA 4.0 | null | 2023-03-03T18:21:34.603 | 2023-03-04T08:01:48.677 | 2023-03-04T08:01:48.677 | 4,279,419 | 4,279,419 | null |
75,630,597 | 2 | null | 75,628,683 | 0 | null | I would suggest you to choose something else as `null` for the default value.
Null is not a value and should not be treated as value. Null is rather absence of value.
If you use null as value in the select option, then Vue use the Option's Text as value. Check the playground below, how the `showValue()` prints 'Only ac... | null | CC BY-SA 4.0 | null | 2023-03-03T18:20:57.917 | 2023-03-03T18:29:45.700 | 2023-03-03T18:29:45.700 | 2,487,565 | 2,487,565 | null |
75,630,609 | 2 | null | 75,630,545 | 1 | null | You can generate a row number on the fly for each dataset and pair rows according to value+rownumber. For example:
```
select x.id, x.name, x.value, y.name, x.lineid
from (
select t.*, row_number() over(partition by id, value order by lineid) as rn
from table1 t
) x
left join (
select t.*, row_number() over(part... | null | CC BY-SA 4.0 | null | 2023-03-03T18:21:50.900 | 2023-03-03T18:52:55.757 | 2023-03-03T18:52:55.757 | 6,436,191 | 6,436,191 | null |
75,630,608 | 2 | null | 75,630,149 | 0 | null | Thanks for editing the question.
The error on your console is pretty clear on what is going wrong here.
Your function `sanitizeCategories` is returning an array of strings, and your function `onCategoriesChange` is waiting an array of numbers.
The easiest solution is change the type of arguments that `onCategoriesChang... | null | CC BY-SA 4.0 | null | 2023-03-03T18:21:43.317 | 2023-03-03T18:21:43.317 | null | null | 17,101,307 | null |
75,630,599 | 2 | null | 75,159,453 | 0 | null | I have been searching far and wide for a solution to relative path packages in the toml dependencies. This solution is admittedly hacky, but it's the best I have so far. Basically, I use git hooks to modify the toml file on each machine with its respective absolute path. See below:
##### My pyproject.toml file:
```
... | null | CC BY-SA 4.0 | null | 2023-03-03T18:21:02.643 | 2023-03-03T21:03:46.960 | 2023-03-03T21:03:46.960 | 9,403,538 | 9,403,538 | null |
75,630,607 | 1 | 75,630,939 | null | 0 | 28 | I have data on shift lengths. Right now, I am trying to visualize which shifts overlap. As an example, consider three shifts, a 12 hour shift beginning at 8am and ending at 8pm, an 8 hour shift, beginning at 8am and ending at 4pm, and a final 12 hour shift beginning at 4pm and ending at 4am.
I am trying to create a `ge... | How to make geom_segment "start over" once a limit has been reached | CC BY-SA 4.0 | null | 2023-03-03T18:21:36.730 | 2023-03-03T19:03:15.637 | null | null | 14,219,038 | [
"r",
"ggplot2"
] |
75,630,613 | 2 | null | 75,629,147 | 0 | null | Try:
```
# set column Datetime as index (if not already)
df['Datetime'] = pd.to_datetime(df['Datetime'])
df = df.sort_values(by='Datetime').set_index('Datetime')
```
and then you can filter your dataframe:
```
print(df['2023-03-03 12:34:00':'2023-03-03 12:38:00'])
```
Prints:
```
ratio dif
Datetime ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:21:58.520 | 2023-03-03T18:21:58.520 | null | null | 10,035,985 | null |
75,630,611 | 1 | null | null | 0 | 18 | I have function that takes two arguments first is Event from enum second is argument based on Event
```
export enum AvailableEvents {
first = 'first',
second = 'second',
third = 'third',
}
type EventTypeMap = {
[AvailableEvents.first]: { a: boolean };
[AvailableEvents.second]: { b: string };
[AvailableEven... | Typescript type of arguments in switch statemet | CC BY-SA 4.0 | null | 2023-03-03T18:21:51.300 | 2023-03-03T18:21:51.300 | null | null | 14,016,336 | [
"typescript"
] |
75,630,614 | 1 | null | null | 1 | 19 | I built a static wiki website hosted by GitLab pages and requires that they log into their gitlab account before accessing the site. It uses Jekyll and some HTML templates to build the site pages from markdown files.
Some of the info on the site would be clearer to the users if I could display their gitlab usernames to... | Access and display a gitlab username on a private gitlab pages hosted website | CC BY-SA 4.0 | null | 2023-03-03T18:22:03.020 | 2023-03-05T01:44:41.653 | 2023-03-05T01:44:41.653 | 3,842,598 | 12,096,485 | [
"javascript",
"html",
"jekyll",
"liquid",
"gitlab-pages"
] |
75,630,612 | 1 | null | null | -1 | 40 | I have been writing a function to inorder print a threaded binary search tree, and I have reached a roadblock as to why it works for the first few, but then it get to the fourth and fifth values, they begin to go back and forth infinitely. Is it an issue with the loops?
This is the function that I tried. I believe it i... | Inorder function looping infinitely | CC BY-SA 4.0 | null | 2023-03-03T18:21:56.210 | 2023-03-03T20:08:19.580 | 2023-03-03T20:08:19.580 | 21,327,716 | 21,327,716 | [
"c++",
"while-loop",
"binary-search-tree",
"inorder"
] |
75,630,616 | 2 | null | 75,630,544 | 1 | null | If it always end with the username, just use `(\w+)$`
```
def get_username(string):
if match1 := re.search(r'(\w+)$', string):
return match1.group(1)
return None
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:22:23.137 | 2023-03-03T18:22:23.137 | null | null | 7,212,686 | null |
75,630,619 | 2 | null | 75,630,565 | 1 | null | This line:
```
myArr.push({hElement: fElement });
```
Needs to be this:
```
myArr.push({[hElement]: fElement });
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:22:54.630 | 2023-03-03T18:22:54.630 | null | null | 12,347,245 | null |
75,630,610 | 1 | null | null | -1 | 12 | I'm trying to add space between my top legend and the chart. I've looked at the solution in [https://stackoverflow.com/questions/42585861/chart-js-increase-spacing-between-legend-and-chart/42589310#:~:text=If%20anyone%20is,hacky%20solution%20/%20workaround%3A](https://stackoverflow.com/questions/42585861/chart-js-incr... | ng2-chart with Angular, question where the plugin goes in my code | CC BY-SA 4.0 | null | 2023-03-03T18:21:51.087 | 2023-03-03T19:39:14.340 | 2023-03-03T19:39:14.340 | 19,257,573 | 19,257,573 | [
"angular",
"legend",
"ng2-charts"
] |
75,630,602 | 1 | null | null | 0 | 11 | I am trying to call a findAPI where I want to filterout the resulkts based on the field statementDate. But for some reason the filter is being ignored and returning 0 rows. when I remove the filter and call the api it returns rows which has the value I was setting in the filter.
Note: when I call the same API from a ja... | How to set Date filter in soap-xml request while calling an API | CC BY-SA 4.0 | null | 2023-03-03T18:21:18.503 | 2023-03-03T18:21:18.503 | null | null | 1,861,033 | [
"java",
"xml",
"api",
"soapui"
] |
75,630,621 | 1 | null | null | 0 | 30 | I installed pipenv and I cannot run it because I'm stuck in some steps. Can somebody help me? I did this:
[](https://i.stack.imgur.com/0HJFO.png)
And I'm stuck in these steps:
[](https://i.stack.imgur.com/kHJu3.png)
| I have problem in Python 3. I installed pipenv and It's not working | CC BY-SA 4.0 | null | 2023-03-03T18:23:05.530 | 2023-03-03T20:57:01.153 | 2023-03-03T20:57:01.153 | 21,327,481 | 21,327,481 | [
"python",
"python-3.x",
"pipenv"
] |
75,630,618 | 1 | null | null | 0 | 11 | I have this following code:
```
import React, { useState, useEffect } from "react";
const FollowMouse = () => {
const [position, setPosition] = useState({ x: 0, y: 0 });
useEffect(() => {
const handleMouseMove = (event) => {
setPosition({
x: event.pageX - window.pageXOffset,
y: event.pag... | How to create a div that follows the mouse even on scroll | CC BY-SA 4.0 | null | 2023-03-03T18:22:51.780 | 2023-03-03T18:22:51.780 | null | null | 20,797,316 | [
"reactjs",
"jsx",
"mouselistener"
] |
75,630,620 | 1 | null | null | -2 | 49 | In this scenario:
```
String myString = "Hi! I'm a String!";
```
We could also do it like this:
```
String myString = new String("Hi! I am a String!");
```
When I look up the "String.java" class in eclipse, it goes to the definition of the constructor.
How can a constructor take non-constructor types like a string?
C... | How was the Java String object made? | CC BY-SA 4.0 | null | 2023-03-03T18:23:01.343 | 2023-03-03T18:32:00.747 | 2023-03-03T18:29:46.713 | 21,327,910 | 21,327,910 | [
"java",
"string",
"constructor"
] |
75,630,625 | 2 | null | 64,780,529 | 0 | null | I encountered the same issue with pandas being in the buildozer.spec file.
Based on Pandy's answer I tried:
```
sudo apt install -y autoconf automake autopoint build-essential ccache cmake gettext git libffi-dev libltdl-dev libssl-dev liblzma-dev libtool openjdk-8-jdk patch pkg-config python3-pip python3-setuptools sud... | null | CC BY-SA 4.0 | null | 2023-03-03T18:23:46.137 | 2023-03-03T18:23:46.137 | null | null | 21,327,844 | null |
75,630,627 | 2 | null | 75,609,165 | 0 | null | I want to thank everyone who took their time and answered my question. Please note that I'm just a beginner and recently came across that task, and they specifically asked to use the stringstream class to solve the problem. I'll test all of your solutions! Thank you once again for the detailed explanation.
Cheers!
| null | CC BY-SA 4.0 | null | 2023-03-03T18:24:14.363 | 2023-03-03T18:24:14.363 | null | null | 19,442,481 | null |
75,630,593 | 1 | null | null | -1 | 17 | I'm trying to implement the microsoft graph sdk [from here](https://github.com/microsoftgraph/msgraph-sdk-java) for an app, but when trying to use gradle build (It is said by the readme to be the thing to use) I get that error
```
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\me\Documents\Integ... | "Could not find method repository() for arguments" when using Gradle build | CC BY-SA 4.0 | null | 2023-03-03T18:19:44.407 | 2023-03-04T01:37:26.620 | 2023-03-04T01:37:26.620 | 11,107,541 | 18,430,562 | [
"java",
"gradle"
] |
75,630,603 | 1 | null | null | 0 | 50 | I have a view results like this:
| Teacher_id | Sex | Missed_Day |
| ---------- | --- | ---------- |
| 45 | m | 19-01-2023 |
| 37 | f | 19-01-2023 |
| 45 | m | 01-02-2023 |
| 78 | m | 01-02-2023 |
I would like a `SELECT count(Sex)` to give me results as follows as the Teacher_id = 45 is a duplicate so it is on... | Getting the correct sex count from a View | CC BY-SA 4.0 | null | 2023-03-03T18:21:26.190 | 2023-03-04T09:42:22.540 | 2023-03-03T18:25:17.780 | 2,029,983 | 5,784,276 | [
"sql-server",
"count",
"sql-server-2016"
] |
75,630,629 | 2 | null | 75,630,550 | 0 | null | As stated in documentation [Array.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map): creates a new array populated with the results of calling a provided function () on every element in the calling array.
```
[1, 4, 9];
^ Math.sqrt(4) = 1
^ Math.sqrt(4) = 2
^... | null | CC BY-SA 4.0 | null | 2023-03-03T18:24:31.540 | 2023-03-03T18:24:31.540 | null | null | 14,529,779 | null |
75,630,622 | 2 | null | 75,627,933 | 4 | null | This construction is wrong:
```
mDoc :=
TMongoDocument.Create(TMongoEnv(fdCon))
...
;
```
You are type-casting the `TFDConnection` object to `TMongoEnv` when creating the `TMongoDocument` object, but that is an illegal type-cast (if you had used the `as` operator for the cast, it would have raised an `EInvalid... | null | CC BY-SA 4.0 | null | 2023-03-03T18:23:10.440 | 2023-03-03T18:30:19.087 | 2023-03-03T18:30:19.087 | 65,863 | 65,863 | null |
75,630,630 | 1 | null | null | 0 | 61 | Trying to find percentage of 'true' values at 1 minute intervals for 24hrs, so needing to keep track of 1440 booleans. Using a single bool array would mean almost 1.5KB - as memory is extremely limited wondering what the smallest way to acheive this might be. Below code is a 'rolling' single array method which seems to... | Most efficient way to store history of boolean values in C++ array | CC BY-SA 4.0 | null | 2023-03-03T18:24:34.733 | 2023-03-03T18:24:34.733 | null | null | 4,554,380 | [
"c++",
"arrays",
"optimization"
] |
75,630,626 | 1 | null | null | -2 | 35 | Let's say I have object which describes expected result:
```
{
"property1" : "value1",
"property2" : "value2",
"property3" :{
"property4" : "value4"
}
}
```
I don't care about all the extra properties. For example,in this case, I get actual result like this, and it will be a match, as all expected prop... | Simple way to compare two objects with unknown stuctures | CC BY-SA 4.0 | null | 2023-03-03T18:23:55.657 | 2023-03-03T18:38:37.870 | null | null | 2,363,676 | [
"javascript",
"lodash"
] |
75,630,632 | 1 | null | null | 0 | 18 | How do I get the users link here as well. I am using the ACF user field as an Array.
```
<?php
$user = get_field("medically_reviewed_by");
if( $user ): ?>
<h3>Medically Reviewed By: <?php echo $user['display_name']; ?></h3>
<?php endif; ?>
```
Thank you
I am not sure what exactly I need to add. I tried the other v... | Need helping adding ACF User link to code using ACF User field | CC BY-SA 4.0 | null | 2023-03-03T18:25:20.910 | 2023-03-03T19:35:09.867 | 2023-03-03T19:35:09.867 | 5,484,345 | 5,484,345 | [
"php",
"wordpress",
"advanced-custom-fields"
] |
75,630,634 | 1 | null | null | 0 | 16 | this seemed to be a good way to make a backup of my files without having to search of them manualy
I use the following command:
```
Get-ChildItem -Recurse -Include *.7z, *.rar, *.zip, *.db, *.sql, *.bmp, *.jpg, *.jpeg, *.odp, *.pps, *.ppt, *.pptx, *.ods, *.xls, *.xlsx, *.doc, *.docx, *.pdf, *.rtf, *.txt | % { Copy-Item... | looking for files and make backup but keep running into error | CC BY-SA 4.0 | null | 2023-03-03T18:25:41.507 | 2023-03-04T13:58:36.840 | 2023-03-04T13:58:36.840 | 11,942,268 | 21,327,462 | [
"powershell",
"file",
"directory",
"copy-item"
] |
75,630,624 | 1 | null | null | 1 | 36 | I wrote a strategy game that involves managing an army. I wrote a program that uses structures to store information about each army unit, such as its type, level, three hit points and three attack points,I wrote a function that takes the information and stores it in structure that I called it unite, but after a functio... | Return struct from a function | CC BY-SA 4.0 | null | 2023-03-03T18:23:44.207 | 2023-03-03T19:35:37.307 | 2023-03-03T19:35:37.307 | 5,382,650 | 16,770,839 | [
"c",
"data-structures",
"struct"
] |
75,630,633 | 2 | null | 75,629,541 | 1 | null | The reason why the flag is missing in the second image is because that project is using the [Universal Render Pipeline (URP)](https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@16.0/manual/index.html) instead of the Built-in Render Pipeline.
Based on the [Camera documentation](https://docs.unity3d.c... | null | CC BY-SA 4.0 | null | 2023-03-03T18:25:26.970 | 2023-03-03T18:25:26.970 | null | null | 1,387,174 | null |
75,630,636 | 1 | null | null | 0 | 30 |
I want to change an already existing alias into a function to specify an argument.
The original code:
```
# support Compose v2 as docker CLI plugin
(( ${+commands[docker-compose]} )) && dccmd='docker-compose' || dccmd='docker compose'
...
alias dcdn="$dccmd down"
...
```
What I want to achieve:
```
# support Compose ... | Using function instead alias misunderstands argument in zsh | CC BY-SA 4.0 | null | 2023-03-03T18:25:42.557 | 2023-03-04T16:10:35.107 | 2023-03-04T15:47:22.880 | 14,122 | 3,281,648 | [
"docker",
"zsh"
] |
75,630,637 | 2 | null | 71,955,851 | 0 | null | The fix for me was to include `postcss` as a value for stylelint to validate, since I'm using `postcss`. I thought just including the `[ "css", "scss" ],` values would work since those are the file extensions I'm using but
I guess it's the technology being used?
Anyway in VS Code settings add/edit the `stylelint.valida... | null | CC BY-SA 4.0 | null | 2023-03-03T18:25:43.757 | 2023-03-03T18:25:43.757 | null | null | 21,327,908 | null |
75,630,638 | 2 | null | 75,630,214 | 1 | null | I don't completely understand your question, but this answer might help you refine the question:
```
const data = [{"id":"BP","collapsed":false},{"id":"item"},{"id":"item"},{"id":"BP","collapsed":false},{"id":"item"},{"id":"BP","collapsed":true},{"id":"item"},{"id":"EP"},{"id":"EP"}]
const root = {}
const stack = [roo... | null | CC BY-SA 4.0 | null | 2023-03-03T18:25:47.903 | 2023-03-03T18:25:47.903 | null | null | 5,898,421 | null |
75,630,640 | 2 | null | 75,630,605 | 2 | null | With Office 365, We can filter the range and return an array of all that meet the criteria. Then use TAKE to grab the last one:
```
=TAKE(FILTER(H:H,((A:A=<row_name>)*(H:H<>""),""),-1)
```
Another option that works in all Versions after 2010 This uses AGGREGATES ability to work with arrays and ignore any errors caus... | null | CC BY-SA 4.0 | null | 2023-03-03T18:26:01.103 | 2023-03-04T16:34:12.210 | 2023-03-04T16:34:12.210 | 4,279,419 | 4,851,590 | null |
75,630,641 | 2 | null | 75,630,544 | 1 | null | I'd try a negative lookahead of `(?!https?://)` to exclude all usernames which appear to start with `http://` or `https://`.
```
twitter(?:(?:\.com/)|(?:[\s\:@]+))(?!https?://)([a-z0-9_\.\-]+)
```
[Try on regex101](https://regex101.com/r/dd1saP/1)
| null | CC BY-SA 4.0 | null | 2023-03-03T18:26:09.213 | 2023-03-03T18:26:09.213 | null | null | 530,160 | null |
75,630,639 | 2 | null | 57,383,192 | 0 | null | For those who are still struggling with this.
As @yawnobleix mentioned there isn't any built-in modifier on `ScrollView` to achieve that on iOS <16.0
Assigning UITableView appearance to the whole app is not always the best option, so I find another one using `DragGesture`
```
struct ContentView: View {
var body: so... | null | CC BY-SA 4.0 | null | 2023-03-03T18:25:55.253 | 2023-03-03T18:25:55.253 | null | null | 9,748,798 | null |
75,630,635 | 2 | null | 75,630,281 | 2 | null | : Code with some explanation (removed coord_flip) as suggested by @tjebo:
1. We create a label_x for our labels with mutate and paste0
2. Using parse_number() (my favorite function) we extract the number from xx%.
3. Bring data in long format with pivot_longer() (long format is the preferred format for ggplot2)
4. wit... | null | CC BY-SA 4.0 | null | 2023-03-03T18:25:41.897 | 2023-03-04T13:31:35.757 | 2023-03-04T13:31:35.757 | 13,321,647 | 13,321,647 | null |
75,630,646 | 2 | null | 75,562,273 | 0 | null | In the case of inline text files in Chrome, the browser may use the object's actual filename instead of the suggested filename in the `Content-Disposition` header. You may try to work around this by setting your file's `Content-Type` header to a MIME type that Chrome recognizes as a downloadable file, such as `applicat... | null | CC BY-SA 4.0 | null | 2023-03-03T18:26:56.530 | 2023-03-03T18:26:56.530 | null | null | 3,029,337 | null |
75,630,642 | 1 | null | null | 0 | 19 | I'm using a script to monitor a file. When a pattern is detected, it will send an email to notify someone.
I am creating a Windows Service via NSSM.
My question is: How can I improve the performance of my script? I have to monitor a large log file during the day. a rolling log file (log1.log, then log2.log, then log3.l... | Powershell script real-time monitoring via Windows Service | CC BY-SA 4.0 | null | 2023-03-03T18:26:26.850 | 2023-03-04T13:35:07.867 | 2023-03-04T06:19:44.370 | 12,572,405 | 584,610 | [
"powershell"
] |
75,630,650 | 1 | null | null | 1 | 10 | How can we do health check a squid server itself?
I couldn't find an endpoint such as /ping? to make sure squid server is running correctly.
or
What we can do is just check the process by ps command ? or systemctl status ?
| squid proxy server health check itself | CC BY-SA 4.0 | null | 2023-03-03T18:27:15.323 | 2023-03-03T18:27:15.323 | null | null | 7,330,132 | [
"squid"
] |
75,630,648 | 1 | null | null | -1 | 19 | [enter image description here](https://i.stack.imgur.com/fOaWr.png)
([https://i.stack.imgur.com/Apu21.jpg](https://i.stack.imgur.com/Apu21.jpg))
([https://i.stack.imgur.com/BURnG.jpg](https://i.stack.imgur.com/BURnG.jpg))
I tried adding code but it wasnt letting me post so i added image
i tried to add level role code f... | any idea how i can fix this Failed to load /home/runner/discord-js-bot-main/src/commands/stats/xp.js Reason: Unexpected end of input | CC BY-SA 4.0 | null | 2023-03-03T18:27:05.833 | 2023-03-03T18:32:22.577 | 2023-03-03T18:32:22.577 | 21,327,869 | 21,327,869 | [
"javascript",
"node.js",
"error-handling",
"discord.js",
"replit"
] |
75,630,649 | 2 | null | 75,630,462 | 2 | null | Apparently, this is something new to Ventura, as it reflects a change with the overhaul of System Settings with all apps now using "Settings" as opposed to "Preferences" when running under 13.x. When the app runs under earlier versions of the OS, the title assigned in the storyboard will still show up.
In any case, the... | null | CC BY-SA 4.0 | null | 2023-03-03T18:27:13.450 | 2023-03-03T18:27:13.450 | null | null | 11,820,691 | null |
75,630,631 | 1 | null | null | 0 | 81 | If I run following Python script on Linux Mint 21 Cinnamon edition with Python 3.11.2:
```
import os
T = "gnome-terminal"
os.system(f'{T} -- python -ic"import os; os.system(\'resize -s 5 32\')"')
os.system(f'{T} -- bash -ic "resize -s 5 32"')
```
it creates following two Terminal windows:
[](https://i.stack.imgur.co... | What does the bash option -i actually do when bash is invoked from Python? | CC BY-SA 4.0 | null | 2023-03-03T18:25:02.307 | 2023-03-04T11:24:13.903 | 2023-03-04T11:24:13.903 | 7,711,283 | 7,711,283 | [
"python",
"bash",
"terminal"
] |
75,630,644 | 1 | null | null | 0 | 41 | Here is the flow
1. Create PYD using pybind11. A simple module called > myPydModule.
2. Start a C++ commercial application that has a built-in python interpreter via boost (I think)
3. Run this code in the C++ app python
```
import sys
sys.path.append("/path/To/Dir/Module")
import myPydModule as mpm
mpm.runMyLogic()... | Is it possible to... "retrieve" embeded python c++ handle? | CC BY-SA 4.0 | null | 2023-03-03T18:26:44.253 | 2023-03-04T01:58:44.337 | 2023-03-04T01:58:44.337 | 12,572,405 | 1,873,108 | [
"python",
"c++",
"embed"
] |
75,630,647 | 1 | null | null | 1 | 9 | In an elixir phoenix liveview, I have a modal that is opened like so:
```
<button
@click={"open_modal_#{@element.id} = !open_modal_#{@element.id}}"}></button>
```
and then
```
<div x-show={"open_modal_#{@element.id}"} x-cloak>
```
What I would want to do is to, after submitting a form on the modal, close the modal by... | Modify AlpineJs X-Data from Elixir Phoenix Liveview's JS Library | CC BY-SA 4.0 | null | 2023-03-03T18:27:05.870 | 2023-03-03T18:27:05.870 | null | null | 17,571,042 | [
"phoenix-framework",
"phoenix-live-view"
] |
75,630,617 | 1 | null | null | 0 | 16 | I am learning `GraphQL` with `.Net Core`, `Entity Framework Core` and `C#`. So far, what I have learned is, if I use `ISchema` then it is very easy to integrate such IDEs. I have successfully integrated these IDEs, [GraphiQL](https://github.com/graphql/graphiql) & [GraphQL.Server.Ui.Playground](https://www.nuget.org/pa... | Can I use external GraphQL IDEs with HotChocolate? | CC BY-SA 4.0 | null | 2023-03-03T18:22:33.710 | 2023-03-03T18:22:33.710 | null | null | 4,186,830 | [
"c#",
"graphql",
"hotchocolate"
] |
75,630,651 | 1 | null | null | 1 | 14 | I have terraform code , to create few aws resources. for example . i create a s3 bucket and create another resource based on or which depends on this s3 resource. I know terraform will figure out that this new object resource is dependent on the first s3 bucket resource, as i have passed this => aws_s3_bucket.s3.id , t... | How to add dependency via arn in terraform? | CC BY-SA 4.0 | null | 2023-03-03T18:27:38.253 | 2023-03-03T20:59:18.937 | null | null | 21,308,352 | [
"terraform-provider-aws"
] |
75,630,643 | 1 | null | null | 0 | 18 | I'm posting this question because this behavior seems very strange to me!
I ain't an expert on mockito, so this may be only my error.
```
@GenerateMocks([AuthProvider])
void main() {
test('If there is not a valid session, the data are clean', () async {
UserDataProvider provider = UserDataProvider();
MockAuth... | Flutter test using Mockito - when API for register stub doesn't work | CC BY-SA 4.0 | null | 2023-03-03T18:26:26.847 | 2023-03-03T20:02:01.963 | null | null | 16,274,461 | [
"flutter",
"dart",
"testing",
"mockito"
] |
75,630,654 | 1 | 75,631,133 | null | 1 | 52 | I want to make it so someone can only run a function via a custom menu every 1 minute, when they run the function it will run a function and then make them wait 1 minute before letting them run it again. Here is my entire code:
```
function onOpen(){
var cooldown = 0;
DevDisableCD();
var menu = SpreadsheetApp.get... | Function Cooldown | CC BY-SA 4.0 | null | 2023-03-03T18:28:01.637 | 2023-03-03T19:24:45.510 | 2023-03-03T18:34:41.647 | 18,646,441 | 18,646,441 | [
"javascript",
"google-apps-script",
"google-sheets"
] |
75,630,656 | 2 | null | 28,559,785 | 0 | null | These answers are all vectors, whereas the title of the post says "list".
To check if a of logicals evaluates to TRUE, simply `unlist()` before checking.
```
> x <- list(rep(TRUE, 5), FALSE)
> y <- list(rep(TRUE, 6))
> all(x)
Error: 'list' object cannot be coerced to type 'logical'
In addition: Warning message:
In al... | null | CC BY-SA 4.0 | null | 2023-03-03T18:28:12.670 | 2023-03-03T18:28:12.670 | null | null | 1,231,241 | null |
75,630,657 | 1 | null | null | 0 | 5 | Adding System.Web.WebPages dll to the project reference for using System.Web.Helpers namesapce to validate Antiforgery token(AntiForgery.Validate())(bin) gives error "Object is not set to an instance of an object" when run the application
Adding System.Web.WebPages dll to the project reference for using System.Web.Help... | Adding System.Web.WebPages dll to the reference (bin) gives error "Object is not set to an instance of an object" | CC BY-SA 4.0 | null | 2023-03-03T18:28:17.730 | 2023-03-03T18:28:17.730 | null | null | 17,090,205 | [
"iis",
"sharepoint",
"csrf",
".net-4.8",
"antiforgerytoken"
] |
75,630,655 | 1 | null | null | 1 | 21 | Hi I am working on a project in my spare time which is a basic financial analysis app for personal use.
I am using react / tailwind and have the following code to generate my charts
{isShown && selectedRowIndex !== null && selectedRow && (
selectedRowIndex === rowIndex ?
: null )}
As you can see from the pictur... | how to dynamically position a "pop up" chart in react / tailwind | CC BY-SA 4.0 | null | 2023-03-03T18:28:07.200 | 2023-03-03T18:44:24.763 | 2023-03-03T18:44:24.763 | 8,684,461 | 8,684,461 | [
"reactjs",
"typescript",
"tailwind-css"
] |
75,630,653 | 1 | 75,630,860 | null | 0 | 13 | I'm new in Vue and it's rather difficult to me. So, when I input something in one component there's an emit event, which messaging to main component that something
has been written in input. Then I use props to send this message from another child component. However, nothing changes
Input child component:
```
<template... | How to transfer data from one component to another Vue | CC BY-SA 4.0 | null | 2023-03-03T18:27:59.710 | 2023-03-03T18:53:13.047 | null | null | 19,933,534 | [
"javascript",
"vue.js",
"vue-component"
] |
75,630,662 | 1 | null | null | 0 | 19 | I have an elasticsearch cluster with one index. At some point I started getting the following error when inserting new documents:
> number of documents in the index cannot exceed 2147483519
After searching online I saw that splitting the index into several primary shards should help. I split the index into a new index ... | Having more than 2B docs in an Elasticsearch index | CC BY-SA 4.0 | null | 2023-03-03T18:28:31.323 | 2023-03-03T18:38:40.333 | null | null | 1,102,783 | [
"elasticsearch"
] |
75,630,663 | 1 | null | null | 0 | 8 | Im pretty new at mobile app development. I have an application source control when I try to run it I get the following error. The project is developed in flutter and Im using visual studio code.
FAILURE: Build failed with an exception.
-
> Could not resolve all files for configuration ':flutter_inapp_purchase:androidA... | Execution failed for task ':flutter_inapp_purchase:parseDebugLocalResources' | CC BY-SA 4.0 | null | 2023-03-03T18:28:38.900 | 2023-03-03T18:28:38.900 | null | null | 10,914,730 | [
"android",
"flutter"
] |
75,630,666 | 1 | 75,630,700 | null | 0 | 23 | I have created a function that does something like this that accepts a pandas dataframe and a column name.
```
def summaryTable(df, cutoff, column):
if cutoff == 1:
df[column] = df.column.astype(str)
```
When I do this I get an AttributeError, DataFrame object has no attribute 'column'. Is there a way to p... | Passing column name to python function | CC BY-SA 4.0 | null | 2023-03-03T18:29:01.173 | 2023-03-03T18:33:03.923 | 2023-03-03T18:29:19.010 | 2,355,903 | 2,355,903 | [
"python",
"pandas",
"function"
] |
75,630,658 | 2 | null | 74,383,080 | 0 | null | If i understand you correctly you only want to check if a specific user reacted to a specific message. You could use the [on_raw_reaction_add()](https://docs.disnake.dev/en/latest/api.html#disnake.on_raw_reaction_add) event for this.
1. You create a command to put a specific msg into the json file + the mentioned user... | null | CC BY-SA 4.0 | null | 2023-03-03T18:28:18.097 | 2023-03-03T18:28:18.097 | null | null | 17,381,704 | null |
75,630,659 | 1 | null | null | 0 | 12 | I am building a chrome extension for the first time. One issue I keep coming across is every 24 hours it logs me out. I have to re-login and I have no idea if there is a "remember me" or a keep me logged in for more than 24 hours settings? I can't seem to find any documentation on how to support a user being kept logge... | Enabling a "Remember Me" or Non-Logout for Chrome Extensions | CC BY-SA 4.0 | null | 2023-03-03T18:28:20.383 | 2023-03-03T18:28:20.383 | null | null | 4,375,248 | [
"authentication",
"google-chrome-extension",
"remember-me"
] |
75,630,668 | 2 | null | 75,630,584 | 0 | null | You should be using [scikit-learn](https://pypi.org/project/scikit-learn/) instead. `sklearn` was [deprecated](https://pypi.org/project/sklearn/)
| null | CC BY-SA 4.0 | null | 2023-03-03T18:29:17.753 | 2023-03-03T18:29:17.753 | null | null | 17,675,150 | null |
75,630,661 | 2 | null | 75,619,235 | 0 | null | I've found the cause.
It is on [https://developers.google.com/apps-script/guides/web](https://developers.google.com/apps-script/guides/web)
```
{
"queryString": "username=jsmith&age=21",
"parameter": {
"username": "jsmith",
"age": "21"
},
"contextPath": "",
"parameters": {
"username": [
"jsm... | null | CC BY-SA 4.0 | null | 2023-03-03T18:28:29.473 | 2023-03-03T18:28:29.473 | null | null | 2,302,661 | null |
75,630,665 | 1 | 75,630,726 | null | 1 | 21 | Suppose I have the following definitions:
```
interface ISomeInterface {
propertyA: string,
propertyB: number,
propertyC: boolean,
propertyD: ISomeOtherInterface // bonus points for this one!
}
class MyGeneric<T> {}
class MyGenericContainer<T> {}
```
now I want to "wrap" all properties, so that I recieve some... | Typescript: How to wrap interface properties? | CC BY-SA 4.0 | null | 2023-03-03T18:28:53.827 | 2023-03-03T18:46:13.567 | 2023-03-03T18:46:13.567 | 1,437,043 | 1,437,043 | [
"typescript",
"typescript-generics"
] |
75,630,671 | 2 | null | 72,308,857 | 0 | null | This is one of the my solution, you can handle this scenario by using context api or redux or any other store,
By the given scenario while onChange get triggered in child component we can update that input value in store and then while onClick get triggered from the parent component you can fetch the data from store an... | null | CC BY-SA 4.0 | null | 2023-03-03T18:29:30.970 | 2023-03-03T18:29:30.970 | null | null | 21,327,926 | null |
75,630,672 | 2 | null | 75,480,721 | 0 | null | In clang-format extension settings you can use "Clang-format: Style" to give a specific option.
Example :
> {IndentWidth: 4}
| null | CC BY-SA 4.0 | null | 2023-03-03T18:29:32.953 | 2023-03-03T18:29:32.953 | null | null | 21,327,967 | null |
75,630,673 | 2 | null | 75,630,337 | 0 | null | Im not familiar with httpx, I use axios but why httpx.get ??
read this:
[https://github.com/JacksonTian/httpx](https://github.com/JacksonTian/httpx)
httpx API:
httpx.request(url[, options])
options Object - Optional
method String - Request method, defaults to GET. Could be GET, POST, DELETE or PUT.
| null | CC BY-SA 4.0 | null | 2023-03-03T18:29:36.067 | 2023-03-03T18:29:36.067 | null | null | 9,233,391 | null |
75,630,669 | 2 | null | 75,539,494 | 0 | null | Use an iframe to save the data in localStorage, and then the other domains ask the iframe for what we already saved.
```
const domains = [
"https://www.domain1.com",
"https://www.domaine2.com"
]
window.addEventListener("message", messageHandler, false);
function messageHandler(event) {
if (!domains.includes(event... | null | CC BY-SA 4.0 | null | 2023-03-03T18:29:21.743 | 2023-03-03T18:29:21.743 | null | null | 11,790,447 | null |
75,630,674 | 2 | null | 75,627,572 | 0 | null | After installing the essential libraries according to your OS as described in the manual [here](https://age.apache.org/age-manual/master/intro/setup.html).
Follow the steps I have [answered](https://stackoverflow.com/questions/75454749/error-installing-age-from-source-code-on-mac/75498675#75498675) on a similar questio... | null | CC BY-SA 4.0 | null | 2023-03-03T18:29:39.180 | 2023-03-03T18:29:39.180 | null | null | 18,610,676 | null |
75,630,676 | 1 | null | null | -1 | 14 | I have 2 versions of Python on my computer, 3.6.8 & 3.11.1. For reasons beyond the scope of this question I need to use the different versions to create the Windows exe programs from the Python source.
When I use Auto Py to Exe to make a Windows executable file, it always uses the 3.6.8 version. BTW: The 3.11 version ... | Assign Python Version to Auto Py to EXE | CC BY-SA 4.0 | null | 2023-03-03T18:30:25.727 | 2023-03-03T18:43:09.123 | 2023-03-03T18:43:09.123 | 4,621,513 | 15,613,309 | [
"python",
"auto-py-to-exe"
] |
75,630,670 | 1 | null | null | 1 | 7 | I have a Nuxt 2 project with the following config:
```
target: 'static',
ssr: true,
fetchOnServer: false,
```
In some of my components I have a `fetch()` hook which fetches API data. I want this data to be fetched only and ever on the client, not by the server when building my site via `npm run generate`.
This should ... | How can I stop Nuxt fetching AJAX data when building for SSR? | CC BY-SA 4.0 | null | 2023-03-03T18:29:29.533 | 2023-03-03T18:30:11.883 | 2023-03-03T18:30:11.883 | 17,143,796 | 17,143,796 | [
"node.js",
"vue.js",
"nuxt.js"
] |
75,630,667 | 2 | null | 75,627,505 | 1 | null | Using `if glob` is wrong.
```
$ ls
a.log
b.log
$ perl -Mv5.14 -e'
sub test { say "$_[0]: ", glob( $_[0] ) ? "at least one match" : "no matches" }
test( "*.log" );
test( "*.txt" );
test( "*.log" );
'
*.log: at least one match # Correct
*.txt: at least one match # Incorrect
*.log: no matches ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:29:11.570 | 2023-03-03T19:31:26.137 | 2023-03-03T19:31:26.137 | 589,924 | 589,924 | null |
75,630,677 | 2 | null | 75,630,545 | 0 | null | You cqan use a CTE with a ROW_NUMBER to get your wanted results, further you need als to get rid of the croos join add anonther condition to your join
:
```
WITH CTE AS
(select t1.Id as id,
t1.Name as NameT1,
t1.Value as ValueT1,
t2.Name as fromName,
t1.LineID as LineId,
ROW_NUMBER() OVER(PARTITION BY t1.Name,t1.Val... | null | CC BY-SA 4.0 | null | 2023-03-03T18:30:55.860 | 2023-03-03T18:30:55.860 | null | null | 5,193,536 | null |
75,630,652 | 1 | 75,631,726 | null | 1 | 29 | I need one help! i am not a master in css. so i did something for my case. but this does not help full. here i try to explain my problem.
any one can help?
[Live Code Demo](https://codesandbox.io/s/sharp-mopsa-jj6fmg?file=/src/App.js:0-3723&resolutionWidth=1000&resolutionHeight=675)
```
import "./styles.css";
import Re... | how to make active element center in react js using css traslateX? or any other way? | CC BY-SA 4.0 | null | 2023-03-03T18:27:44.070 | 2023-03-03T23:47:03.400 | 2023-03-03T18:37:01.897 | 19,867,724 | 19,867,724 | [
"javascript",
"css",
"reactjs",
"styled-components"
] |
75,630,684 | 2 | null | 73,504,637 | 0 | null | You have to change two values to have the name properly displayed on your ios Emulator.
In ios/Runner/Info.plist change the "MyApp"
```
<key>CFBundleDisplayName</key>
<string>MyApp</string>
<key>CFBundleName</key>
<string>MyApp</string>
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:32:03.600 | 2023-03-03T18:32:03.600 | null | null | 20,347,500 | null |
75,630,678 | 2 | null | 75,630,480 | 1 | null | The issue you're facing is related to the JSON deserialization process in Retrofit. When the server returns null, the JSON response is not a valid JSON array, but rather a JSON null value. This is causing the UnexpectedValueError when trying to deserialize the response as a list of posts.
To fix this, you can create a ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:30:57.100 | 2023-03-03T18:30:57.100 | null | null | 3,932,695 | null |
75,630,682 | 1 | null | null | 0 | 15 | I have java program which contains the RestAPI calls. I got root certificate from server side which contains one immediate certificate. I need to import this root certificate at client side to provide HTTPS SSL support. To do that, I need to store the public key of immediate certificate into the java trust store on loc... | Getting issue unable to find valid certification path to requested target when using root certificate containing immediate certificate | CC BY-SA 4.0 | null | 2023-03-03T18:31:36.110 | 2023-03-04T00:59:28.133 | 2023-03-04T00:59:28.133 | 11,107,541 | 20,881,825 | [
"java",
"rest",
"cryptography",
"ssl-certificate",
"truststore"
] |
75,630,683 | 1 | null | null | 2 | 21 | Hi got an email yesterday when I ran npm run deploy that it ran into an error. The site is still up and working but none of the changes I commited are implemented. How do I go about syncing the ghpages and recent commits?
Tried rerunning npm run deploy on other laptop
Tried clearing ghpages cache in node modules then r... | Gh-pages not updating after deployment | CC BY-SA 4.0 | null | 2023-03-03T18:31:37.493 | 2023-03-04T00:43:07.087 | 2023-03-03T18:32:25.453 | 21,195,804 | 21,195,804 | [
"reactjs",
"github",
"github-pages"
] |
75,630,679 | 1 | null | null | -1 | 47 | I'm trying to start a telegram bot, but it gives the following error:
```
bars@MacBook-Pro-Lisa desktop % python3 telegram_bot.py
Traceback (most recent call last):
File "/Users/bars/Desktop/telegram_bot.py", line 30, in <module>
updater = Updater(token=TOKEN, use_context=True)
TypeError: Updater.__init__() got a... | TypeError: Updater.__init__() got an unexpected keyword argument 'token' | CC BY-SA 4.0 | null | 2023-03-03T18:30:57.660 | 2023-03-03T18:53:13.363 | 2023-03-03T18:53:13.363 | 21,327,940 | 21,327,940 | [
"python",
"syntax-error",
"telegram-bot"
] |
75,630,681 | 2 | null | 75,629,990 | 4 | null | You can use `GenomicRanges` for something like this. See commented out code at the beginning below for installing.
The `GRanges` class is a container for genomic locations and associated annotations.
The function `makeGRangesFromDataFrame` will take a data.frame as input and automatically find the columns that describe... | null | CC BY-SA 4.0 | null | 2023-03-03T18:31:04.070 | 2023-03-03T18:31:04.070 | null | null | 3,460,670 | null |
75,630,685 | 1 | null | null | 1 | 50 | I need it to select only value which has `:this` in line but not include which are under comment section (/* */)
I have tried this one which works and give 3 results but it is incorrect as it select the last one which is in comment
```
const str = `
:this {
display: grid;
}
p { color: red}
:t... | regex to use negative look far behind along with positive look behind? | CC BY-SA 4.0 | null | 2023-03-03T18:32:07.213 | 2023-03-03T20:09:38.003 | 2023-03-03T19:57:45.397 | 1,024,832 | 155,861 | [
"javascript",
"regex"
] |
75,630,680 | 2 | null | 75,629,427 | 1 | null | This is more general than `Borrow`. You can do the same thing with regular references:
```
let r1: &mut i32 = &mut n;
let r2: &i32 = &*r1;
```
When you think about it, it's very necessary to be able to make immutable references from mutable references. For example, you need it to call `&self` methods on `&mut` variabl... | null | CC BY-SA 4.0 | null | 2023-03-03T18:30:59.250 | 2023-03-03T18:30:59.250 | null | null | 6,274,355 | null |
75,630,660 | 1 | null | null | 0 | 28 | I was trying to train a Yolo model on Pascal VOC and after around 120 epochs, when I tried testing it, I realized it was outputting the exact same bounding boxes for every single image and even just random noise.
Here is the model:
```
class ConvLayer(nn.Module):
def __init__(self, in_channels, out_channels, kernel... | Yolo outputting exact same bounding boxes for each input | CC BY-SA 4.0 | null | 2023-03-03T18:28:25.970 | 2023-03-04T17:55:33.037 | 2023-03-04T17:55:33.037 | 18,013,692 | 18,013,692 | [
"python",
"pytorch",
"computer-vision",
"object-detection",
"yolo"
] |
75,630,692 | 2 | null | 75,604,291 | 0 | null | Since you're doing a navigation to other pages the easiest thing to do is copy over all querystring you receive on your index.html to the other pages when navigating away from the index page. that should fix all issues.
| null | CC BY-SA 4.0 | null | 2023-03-03T18:32:24.623 | 2023-03-03T18:32:24.623 | null | null | 1,012,858 | null |
75,630,688 | 2 | null | 61,031,223 | 0 | null | The general idea behind the issue (and solution made by author later) is: check `Access-Control-Request-Headers` which presented in the headers and `AllowedHeaders` which your go-chi server supports.
Absolutely every header from `Access-Control-Request-Headers` must be presented in `AllowedHeaders`, even if one of the... | null | CC BY-SA 4.0 | null | 2023-03-03T18:32:11.057 | 2023-03-03T18:32:11.057 | null | null | 3,002,244 | null |
75,630,686 | 2 | null | 75,076,500 | 0 | null | After many, more hours spent placing console.logs everywhere, I have finally discovered the problem.
As it turns out, the values sent to the Draggable item do not automatically get updated unless they themselves are re-rendered, OR it is expressed as a dependency in the useDrag hook in React-DnD. This means each time ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:32:09.503 | 2023-03-03T18:32:09.503 | null | null | 2,755,403 | null |
75,630,693 | 1 | null | null | 0 | 13 | I have a question the case I have
I have a list of products linked in the recycleview
Using DataBinding
assigned in layout like this app:items="@{vm.items}"
This Items object has the parameters notifyPropertyChanged(BR.amount)
And almost everything works fine, if I add more element it is updated and the observer of the... | Understanding Data Binding in RecyclerView | CC BY-SA 4.0 | null | 2023-03-03T18:32:27.823 | 2023-03-04T15:02:26.443 | null | null | 21,327,954 | [
"android",
"kotlin",
"mvvm",
"android-databinding"
] |
75,630,696 | 1 | null | null | 0 | 18 | I have tried changing the framework but that doesn't solve my problem.
Seems to randomly occur.
Error Code below:
Severity Code Description Project File Line Suppression State
Error FileNotFoundException: Could not find file 'obj\Debug\net6.0-windows7.0\refint\FirstApp.dll'.
at System.IO.__Error.WinIO... | When creating a windows form app I get the following error could not find dll under refint | CC BY-SA 4.0 | null | 2023-03-03T18:32:48.473 | 2023-03-03T18:36:53.300 | 2023-03-03T18:36:53.300 | 5,364,934 | 5,364,934 | [
".net",
"winforms"
] |
75,630,695 | 2 | null | 30,680,050 | 0 | null | It needs to be worked, actually, mine is and I have mapped the baamini.ttf file for the Bamini font. try this.
```
<style>
body {
background-image: url("image.jpg");
}
@font-face {
font-family: "Bamini";
src: url("./font/baamini.ttf");
}
h1 {
font-family:... | null | CC BY-SA 4.0 | null | 2023-03-03T18:32:47.640 | 2023-03-03T18:32:47.640 | null | null | 18,791,771 | null |
75,630,690 | 2 | null | 75,621,039 | 1 | null | I tried and cloned the repository, then used [gh pr -c view 18431](https://cli.github.com/manual/gh_pr_view).
I do see the comments.
Using `GH_DEBUG=API`, I can see the GitHub CLI is using a [GraphQL API V4](https://docs.github.com/en/graphql) call:
GraphQL query:
```
query PullRequestByNumber($owner: String!, $repo: S... | null | CC BY-SA 4.0 | null | 2023-03-03T18:32:18.823 | 2023-03-04T01:24:38.970 | 2023-03-04T01:24:38.970 | 6,309 | 6,309 | null |
75,630,687 | 2 | null | 75,627,189 | 2 | null | You need to find a colourspace where the yellows and the blues are well separated. Splitting the channels, and assigning them across the page, in `RGB` colourspace (with R on the left, G in the centre and B on the right):
[](https://i.stack.imgur.com/H478n.jpg)
that's not very good - the brighter tones of yellow where ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:32:09.540 | 2023-03-03T20:03:31.357 | 2023-03-03T20:03:31.357 | 2,836,621 | 2,836,621 | null |
75,630,694 | 1 | null | null | 0 | 17 | When I tried to run the program, I received an error saying this 'Line 5:5: Expected an assignment or function call and instead saw an expression no-unused-expressions' on 'width: 80%'. Can someone help me fix this?
```
import {Box, Table, TableBody, TableCell, TableHead, TableRow, Typography, styled} from '@mui/mate... | I'm having trouble with this function call or expression error | CC BY-SA 4.0 | null | 2023-03-03T18:32:35.443 | 2023-03-03T18:43:05.307 | 2023-03-03T18:33:33.343 | 21,281,465 | 21,281,465 | [
"reactjs",
"jsx"
] |
75,630,689 | 1 | null | null | 1 | 66 | I'm working on a chatbot powered by OpenAI. I'm using the new gpt-3.5-turbo model with ChatCompletion requests. I've already come up with a way for the bot to remember conversations for each individual user using a HashMap and it all works. The bot is able to remember all the previous responses and generate a new respo... | How to clear Map entry after certain time of inactivity | CC BY-SA 4.0 | null | 2023-03-03T18:32:16.137 | 2023-03-04T18:44:48.420 | 2023-03-04T18:44:48.420 | 10,844,972 | 10,844,972 | [
"java",
"openai-api"
] |
75,630,700 | 2 | null | 75,630,666 | 1 | null | Just use `[` `]` for access and assignment, consider following simple example
```
import pandas as pd
df = pd.DataFrame({"col1":[1,2,3]})
def make_float(df, column_name):
df[column_name] = df[column_name].astype(float)
make_float(df, "col1")
print(df)
```
gives output
```
col1
0 1.0
1 2.0
2 3.0
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:33:03.923 | 2023-03-03T18:33:03.923 | null | null | 10,785,975 | null |
75,630,701 | 2 | null | 75,629,620 | 1 | null | Thanks to Marquizzo, I found the solution to my problem.
I needede to use WorldToLocal to get the local position instead of the world position.
```
cube.position.copy(Moon.worldToLocal(intersectSelect.point));
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:33:05.270 | 2023-03-03T18:34:11.653 | 2023-03-03T18:34:11.653 | 21,075,832 | 21,075,832 | null |