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,633,049 | 2 | null | 75,632,724 | 2 | null | ```
library(tidyverse)
library(httr2)
"https://www.psacard.com/Pop/GetSetItems" %>%
request() %>%
req_headers(Accept = "application/json") %>%
req_body_form(
draw = 1,
start = 0,
length = 300,
headingID = 36766,
categoryID = 20019,
isPSADNA = "false"
) %>%
req_perform() %>%
resp_bo... | null | CC BY-SA 4.0 | null | 2023-03-04T01:06:00.653 | 2023-03-04T01:06:00.653 | null | null | 17,213,355 | null |
75,633,063 | 2 | null | 75,629,069 | 1 | null | I think you should rethink your branching strategy. Do you really want to merge into production, or rather just those features that are ready?
I'd recommend , and leave the integration/staging branch as it is. Regularily merge main into staging, and from time to time you recreate staging from scratch as taking main pl... | null | CC BY-SA 4.0 | null | 2023-03-04T01:09:25.020 | 2023-03-04T01:09:25.020 | null | null | 1,980,653 | null |
75,632,991 | 1 | 75,634,649 | null | 0 | 33 | Run in a PL/pgSQL a function to return N columns and put in a view or something that allow to get the table with the N column updated without human intervention.
Using the below code from:
[create dynamic column from a column with multi variables](https://stackoverflow.com/questions/75594224/)
```
---sample data
DROP ... | Looking for a PL/PGSQL function to return N columns | CC BY-SA 4.0 | null | 2023-03-04T00:49:09.793 | 2023-03-04T09:07:42.963 | 2023-03-04T07:34:38.747 | 330,315 | 18,940,449 | [
"postgresql",
"plpgsql",
"postgresql-9.3",
"postgresql-9.4"
] |
75,633,062 | 1 | null | null | -1 | 33 | ```
SELECT p.name as projectname, c.name as clientname,
count(sm.id) as salecount,
count(sm.id) *
CASE
WHEN sm.project_code='PRO0115' THEN 0.6
WHEN sm.project_code='PRO0148' THEN 0.8
WHEN sm.project_code='PRO0149' THEN 0.8
WHEN sm.project_code='PRO0105' THEN 0.8
WHEN ... | Why is date data not returned from my query? | CC BY-SA 4.0 | null | 2023-03-04T01:09:09.540 | 2023-03-04T06:19:00.070 | 2023-03-04T01:29:15.047 | 3,043 | 21,329,248 | [
"mysql",
"sql"
] |
75,633,067 | 1 | null | null | 0 | 11 | The point p passed in is one of the points where the triangle profile is constructed, and I want to update its neighbor information. I expect to get all the tetrahedra that contain it and then process them with the incident_cells function. But sometimes this function gets too many tetrahedra and not the right ones. Som... | Incremental build with CGAL, problem when updating neighbor information of points | CC BY-SA 4.0 | null | 2023-03-04T01:10:50.220 | 2023-03-04T01:10:50.220 | null | null | 21,329,251 | [
"c++",
"cgal",
"triangulation"
] |
75,633,070 | 1 | null | null | 0 | 18 | I have some complex Item expressions where the type casts of nested template types are getting quite long and difficult to read. Is it possible to 'store' a type in the Natvis definition for reuse in the expression?
For example, in the following screenshot, the arrow is pointing to a type that I am casting to which is ... | Natvis type alias feature similar to typedef | CC BY-SA 4.0 | null | 2023-03-04T01:11:57.123 | 2023-03-04T01:11:57.123 | null | null | 368,599 | [
"c++",
"natvis"
] |
75,633,066 | 1 | null | null | 0 | 31 | I have 2 List of different Object `List<A>`, `List<B>`
```
public class A {
int id;
}
public class B {
int trackingNumber;
}
```
I want to create a third `list<C>` from these using lambda or any other preferred approach.
```
public class C{
int id;
int tracking number;
}
```
How should I write my method?
```
private... | Java Lambda Stream through two list to create a new list | CC BY-SA 4.0 | null | 2023-03-04T01:10:34.043 | 2023-03-04T01:31:18.243 | null | null | 3,878,948 | [
"java",
"lambda",
"stream"
] |
75,633,068 | 2 | null | 75,632,784 | 1 | null | I'm the one who answers your first questions.
You do not need to pass things like that when doing request from your front-end which is already authenticated through session.
All you have to is make sure to set with axios with credentials under
`resources/js/bootstrap.js`
```
import axios from 'axios'
window.axios = axi... | null | CC BY-SA 4.0 | null | 2023-03-04T01:11:41.430 | 2023-03-04T13:49:22.513 | 2023-03-04T13:49:22.513 | 1,319,623 | 1,319,623 | null |
75,633,069 | 1 | null | null | 0 | 24 | there!
I'm writing a BMI calculator with Jetpack Compose.
I set two "TextFieldValue" functions to input the height and weight of the user. Both functions return "text" that I can't convert it to Double type so I can do the Maths!
It's beeing over 3 hours that I'm stucked on it!
I'm starting at Android Development, so y... | Transform a TextFieldValue return to Double (Kotlin, Jetpack Compose) | CC BY-SA 4.0 | null | 2023-03-04T01:11:42.613 | 2023-03-04T06:29:16.567 | null | null | 21,318,604 | [
"android",
"kotlin",
"android-jetpack-compose",
"android-jetpack"
] |
75,633,072 | 1 | null | null | 2 | 46 | In theory, I would like to know a way to have a recursive function that runs forever without exceeding the call stack. I am trying to implement in javascript and I keep getting the error `RangeError: Maximum call stack size exceeded`
My code looks like this
```
class mainController{
static async func1() {
... | Recursive function without exceeding call stack | CC BY-SA 4.0 | null | 2023-03-04T01:12:27.440 | 2023-03-04T03:53:59.640 | 2023-03-04T03:53:59.640 | 5,521,818 | 6,307,011 | [
"javascript",
"node.js"
] |
75,633,064 | 2 | null | 75,632,786 | 0 | null | Instead of names and flags list, make one Data class. Then make list of that class.
```
class DataModel{
int id;
String name;
bool isSelected;
DataModel({required this.id, required this.name, this.isSelected = false});
}
```
```
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
cla... | null | CC BY-SA 4.0 | null | 2023-03-04T01:09:26.227 | 2023-03-04T01:09:26.227 | null | null | 8,021,111 | null |
75,633,071 | 1 | null | null | 0 | 13 | [https://i.stack.imgur.com/lecOs.png](https://i.stack.imgur.com/lecOs.png)
How can I filter the data from the api by entering the start and end time value and reflect it back to the table?
Examples : [https://stackblitz.com/edit/angular-pkkvbd-cdtxwz-date-range-filter-jzlwxr?file=app%2Ftable-filtering-example.ts](https... | how to do two date pickers range filter with api angular material table | CC BY-SA 4.0 | null | 2023-03-04T01:11:58.433 | 2023-03-04T01:13:43.103 | 2023-03-04T01:13:43.103 | 20,678,102 | 20,678,102 | [
"angular",
"angular-material",
"datepicker",
"daterangepicker"
] |
75,633,073 | 2 | null | 46,146,476 | 0 | null | to archieve that so, get the line of "long long long long long long long long long long long long long long title" and add this ascii character; " & n b s p ;"
Source: [  and HTML Space Challenges and Tricks](https://mailtrap.io/blog/nbsp/#:%7E:text=is%20a%20useful%20way,used%20just%20for%20that%20purpose.)
add eno... | null | CC BY-SA 4.0 | null | 2023-03-04T01:12:38.287 | 2023-03-04T01:13:28.830 | 2023-03-04T01:13:28.830 | 20,901,489 | 20,901,489 | null |
75,633,075 | 1 | 75,633,329 | null | 3 | 48 | Tried to create a random image with PIL as per the example:
```
import numpy
from PIL import image
a = numpy.random.rand(48,84)
img = Image.fromarray(a.astype('uint8')).convert('1')
print(len(img.tobytes()))
```
This particular code will output 528.
Wen we flip the numbers of the numpy array:
```
a = numpy.random.ran... | Why do image size differ when vertical vs horizontal? | CC BY-SA 4.0 | null | 2023-03-04T01:13:37.587 | 2023-03-04T09:11:56.057 | null | null | 5,898,089 | [
"python",
"image",
"image-processing",
"python-imaging-library"
] |
75,633,077 | 2 | null | 75,628,327 | 1 | null | The [threading module](https://docs.python.org/3/library/threading.html) ended up being the path of least resistance. My call to write to the NetCDF file looks like this:
```
threading.Thread(target=wind.append, args=(arg1, arg2, ...)).start()
```
There was no need to change around my NetcdfOutput class or anything el... | null | CC BY-SA 4.0 | null | 2023-03-04T01:14:10.323 | 2023-03-04T01:14:10.323 | null | null | 21,326,222 | null |
75,633,061 | 1 | 75,633,234 | null | 1 | 27 | Unable to redirect because the object no longer exists after deletion.
URLs:
```
urlpatterns = [
# home page
path('', views.index, name='index'),
path('forums/forum_create/',
views.forum_create, name='forum_create'),
path('forums/forum_edit/<int:id>/',
views.forum_edit, name='forum_edi... | How to redirect after deleting a detail view object? | CC BY-SA 4.0 | null | 2023-03-04T01:08:52.327 | 2023-03-04T02:07:37.013 | 2023-03-04T01:35:22.277 | 21,237,665 | 21,237,665 | [
"python",
"django"
] |
75,633,081 | 1 | 75,636,982 | null | 1 | 19 | I am using specifically Luxon. However this question applies to all date/time libraries.
What happens if a country (say the USA) decides to remain in DST the whole year? To the point, libraries must contain a list of timezones and DST dates. If DST changes for a country, does a new version of the library need to be ... | Timezone and DST calculation in date/time libraries | CC BY-SA 4.0 | null | 2023-03-04T01:14:57.643 | 2023-03-05T04:49:14.690 | 2023-03-04T08:42:17.483 | 11,107,541 | 16,570,004 | [
"date",
"datetime",
"timezone",
"dst",
"luxon"
] |
75,633,074 | 2 | null | 75,631,441 | 0 | null | If it is acceptable to write a temp file, I suggest this as a model:
```
gnuplot> tempfile = system("mktemp")
gnuplot> save tempfile
gnuplot> command = sprintf("grep -c 'logscale x' %s",tempfile)
gnuplot> x_is_logscale = system(command)
gnuplot> if (x_is_logscale) { print "yes" } else { print "no" }
```
Otherwise I su... | null | CC BY-SA 4.0 | null | 2023-03-04T01:12:51.400 | 2023-03-04T01:12:51.400 | null | null | 6,797,953 | null |
75,633,078 | 2 | null | 75,632,960 | 0 | null | Simply search through the buffer to find the animal:
```
char *cp = buffer + numbytes - strlen(animal);
while( cp > buffer && strncmp( cp, animal, strlen( animal ) ) // non-zero = mismatch
cp--;
// cp now points to the first letter of the animal. No duplicates, I hope.
if( cp == buffer )
// not found... exit
... | null | CC BY-SA 4.0 | null | 2023-03-04T01:14:12.870 | 2023-03-04T02:23:04.190 | 2023-03-04T02:23:04.190 | 17,592,432 | 17,592,432 | null |
75,633,082 | 1 | null | null | 0 | 26 | I am trying to allow the user to select a section of text to perform commands on.
I have been trying to create `mark` tags around a section of a text that the user has highlighted with their mouse. If the user selects other text, the previously marked text should return to normal, and the new text should become marked.... | HTML mark tags around mouse highlighted text | CC BY-SA 4.0 | null | 2023-03-04T01:15:08.447 | 2023-03-04T16:32:55.263 | 2023-03-04T16:32:55.263 | 15,051,704 | 15,051,704 | [
"javascript",
"html",
"dom",
"web-frontend"
] |
75,633,079 | 1 | null | null | 0 | 8 | I get this error:
> java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varchar2(20),sal number)' at line 1`
This is my code:
```
import java.sql.Connection;
import java.sql.DriverManager;
import java.sq... | Why I am getting SQL syntax error during runtime while all of my codes look fine? | CC BY-SA 4.0 | null | 2023-03-04T01:14:28.747 | 2023-03-04T13:45:46.210 | 2023-03-04T13:45:46.210 | 13,302 | 21,329,247 | [
"runtime-error",
"syntax-error"
] |
75,633,076 | 1 | null | null | 1 | 29 | I have a Typescript class that is using the Web Audio API. I have this in a class method:
```
getTracks.filter(
(track) => track.kind === 'audio'
).forEach(
(track, index) => {
if (!this._recordingData.hasOwnProperty('track information')) {
...
}
}
)
```
In the "if" statement `t... | Missing `this` in typescript arrow function? | CC BY-SA 4.0 | null | 2023-03-04T01:14:05.923 | 2023-03-04T03:55:24.667 | 2023-03-04T03:55:24.667 | 2,034,048 | 2,034,048 | [
"typescript"
] |
75,633,090 | 2 | null | 42,828,083 | 0 | null | This worked for me:
```
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
sudo apt update && sudo apt install libssl1.1
```
| null | CC BY-SA 4.0 | null | 2023-03-04T01:17:33.303 | 2023-03-04T01:17:33.303 | null | null | 15,673,468 | null |
75,633,094 | 2 | null | 75,622,925 | 0 | null | Upper and lower are a way to divide a very long 128-bit number into 2 64-bit numbers.
To see it action:
```
select md5_hex('a')
, to_char(md5_number_upper64('a'), 'xxxxxxxxxxxxxxxx') upper
, to_char(md5_number_lower64('a'), 'xxxxxxxxxxxxxxxx') lower
```
[](https://i.stack.imgur.com/kzr5V.png)
You can see that ... | null | CC BY-SA 4.0 | null | 2023-03-04T01:18:01.433 | 2023-03-04T01:18:01.433 | null | null | 132,438 | null |
75,633,087 | 2 | null | 51,435,725 | 0 | null | As of [Laravel 9](https://laravel.com/docs/9.x/dusk#resetting-the-database-after-each-test) it's possible to replace the slower `DatabaseMigrations` trait with `DatabaseTruncation`. This requires installing the `doctrine/dbal` package to use, but has the advantage of being faster:
> The DatabaseMigrations trait will ru... | null | CC BY-SA 4.0 | null | 2023-03-04T01:16:42.440 | 2023-03-04T01:16:42.440 | null | null | 1,191,147 | null |
75,633,088 | 1 | null | null | -2 | 10 | I am attempting to query some official valve servers in tf2. these servers are supposed to be able to be queried using php a2s requests. problem im facing is that the server information provided by the game's console only gives gameserver ports which cant be queried using a2s to my knowledge, and the query ports arent ... | How do i find the queryports for official Valve servers (casual, mvm competitive etc) for team fortress 2? | CC BY-SA 4.0 | null | 2023-03-04T01:17:28.813 | 2023-03-04T01:17:28.813 | null | null | 21,329,261 | [
"php"
] |
75,633,092 | 2 | null | 75,632,970 | 0 | null | Have a look at the [actions's example](https://docs.docker.com/build/ci/github-actions/share-image-jobs/) on how to share a docker image between jobs.
The action offers an [outputs¹](https://github.com/marketplace/actions/build-and-push-docker-images#inputs) argument:
> List of [output destinations](https://docs.docker... | null | CC BY-SA 4.0 | null | 2023-03-04T01:17:36.173 | 2023-03-04T01:17:36.173 | null | null | 5,078,746 | null |
75,633,093 | 2 | null | 75,630,980 | 0 | null | My `package.json` was pointing to the `webpack.config.development.js` and in there i had a typo where I had typed `node: 'development'` instead of `mode:development` and that is why it was throwing the above error.
The above `webpack.config.js` is compatible and working with `webpack:5.75.0` and below is my `webpack.co... | null | CC BY-SA 4.0 | null | 2023-03-04T01:17:36.770 | 2023-03-04T01:17:36.770 | null | null | 19,495,822 | null |
75,633,095 | 2 | null | 75,633,072 | 1 | null | You can keep from overflowing the stack by making the recursive loop async (or, at least, async every few thousand iterations)...
```
// look in browser console, not in snippet console
const func1 = () => {
console.log('Running the Function');
setTimeout(func1);
}
func1();
```
But
> However i want to believe the... | null | CC BY-SA 4.0 | null | 2023-03-04T01:18:15.503 | 2023-03-04T01:18:15.503 | null | null | 9,515,207 | null |
75,633,084 | 2 | null | 75,631,140 | 0 | null | fitted models contain cross-references to other data, which cannot easily be saved to file and restored from file.
Fitted models of any kind (including the standard `lm`, `glm` as well as the `spatstat` package models `ppm` and `kppm`) contain references to one or more `environment`s that actually contain the data us... | null | CC BY-SA 4.0 | null | 2023-03-04T01:15:37.527 | 2023-03-04T01:15:37.527 | null | null | 10,988,264 | null |
75,633,100 | 2 | null | 75,632,975 | 2 | null | You can do it this way:
```
pd.concat([e.set_index(e['city'])
for e in [df1, df2]], axis=1).reset_index(drop=True)
```
Output:
```
city city
0 ABC ABC
1 NEW NEW
2 TWIN NaN
3 KING NaN
```
Creating a index with the city columns for each dataframe, then pd.concat which pandas aligns the data based ... | null | CC BY-SA 4.0 | null | 2023-03-04T01:19:13.287 | 2023-03-04T01:19:13.287 | null | null | 6,361,531 | null |
75,633,099 | 1 | null | null | 0 | 19 | Is there a way of accessing the j'th component of a vector type such as `int4` ?
Here is how I currently do it, but is there an easier way ?
```
int4 temp = (int4)(10,20,30,40)
for (int j = 0; j < 4; ++j){
int component_j = shuffle(pix, (uint4)(j,(j+1)&3,(j+2)&3,(j+3)&3)).s0;
}
```
| Access i'th component of vector type | CC BY-SA 4.0 | null | 2023-03-04T01:19:12.830 | 2023-03-04T01:19:12.830 | null | null | 244,005 | [
"cuda",
"opencl"
] |
75,633,103 | 2 | null | 75,633,072 | 0 | null | As long as you use `setTimeout` (or some other way to make each iteration "wait" to be ran by the [event loop](https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop)) then you should be fine:
```
(() => {
let i = 0;
const infinite = () => {
console.log(i++);
setTimeout(infinite);
... | null | CC BY-SA 4.0 | null | 2023-03-04T01:19:49.797 | 2023-03-04T01:19:49.797 | null | null | 2,082,673 | null |
75,633,105 | 2 | null | 75,631,522 | 1 | null | I was passing this array as a reference into a new variable, which was being modified, but because it was a reference, it affected the original variable as well. Chrome was showing the object modified AFTER the log.
[Screenshot with the problem variable highlighted, which modifies the reference later](https://i.stack.i... | null | CC BY-SA 4.0 | null | 2023-03-04T01:21:10.590 | 2023-03-04T01:21:10.590 | null | null | 20,207,966 | null |
75,633,098 | 1 | null | null | 1 | 10 | I have an ASP.NET Core 6 Web API project with all controllers decorated with the `[ApiController]` annotation. I use validation annotations like `[Required]`, `[MaxLength]` etc. to validate properties of DTOs received in incoming requests.
Some of my DTOs also implement the `IValidatableObject` interface, to handle mor... | Web API attribute validation does not return all errors | CC BY-SA 4.0 | null | 2023-03-04T01:19:04.397 | 2023-03-04T07:45:05.943 | 2023-03-04T07:45:05.943 | 13,302 | 5,403,411 | [
"asp.net-core-webapi",
"asp.net-core-6.0",
"validationattribute"
] |
75,633,104 | 1 | null | null | 0 | 43 | I have a class that reads from and writes to a dictionary using a serial dispatch queue. While the write operations are asynchronous, the read operations are synchronous. I want to avoid the use of a completion handler for reading. Does this create any issues? The issue could range from deadlocks or crashes by calling ... | Is it safe to call DispatchQueue sync for read operations? | CC BY-SA 4.0 | null | 2023-03-04T01:20:29.807 | 2023-03-04T03:27:35.340 | 2023-03-04T01:31:19.530 | 1,253,102 | 1,253,102 | [
"swift",
"dispatch-queue",
"swift-concurrency"
] |
75,633,107 | 1 | null | null | 0 | 9 | I'm trying to run OptunaSearch with a config that looks like this
```
config = {"algorithm": tune.choice(list(search_space.keys())),
"params": tune.sample_from(lambda spec: search_space[spec.config.algorithm]['params'])}
```
Where the search_space is a dict of like this
```
search_space = {
"algorithm_1"... | Ray-Tune with Optuna and tune.sample_from | CC BY-SA 4.0 | null | 2023-03-04T01:22:37.700 | 2023-03-04T01:22:37.700 | null | null | 5,495,134 | [
"python",
"ray",
"optuna",
"ray-tune"
] |
75,633,097 | 1 | null | null | -2 | 12 | Actually I am using the follow html code, which defines the web server:
```
def web_page_with_water():
global Desired_Temp
html = """<html>
<head>
<title>Thermocirculator</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
... | My web server reloasd automaticaly every 0.2 seconds, but it activates the buttons every time it realoads. How can I fix it? | CC BY-SA 4.0 | null | 2023-03-04T01:19:02.257 | 2023-03-04T01:19:02.257 | null | null | 20,481,179 | [
"html",
"web",
"server",
"reload",
"micropython"
] |
75,633,101 | 2 | null | 75,632,373 | 1 | null |
There are multiple ways to achieve this and one way is to disable Gmail by doing the following:
1. Create an organizational unit on admin.google.com on Directory > Organizational units > Create organizational unit.
2. Go to Users > Click on More Options, and then choose “Change organizational unit, and choose the new... | null | CC BY-SA 4.0 | null | 2023-03-04T01:19:36.063 | 2023-03-04T01:19:36.063 | null | null | 15,516,699 | null |
75,633,113 | 2 | null | 75,618,885 | 0 | null | There's no expectation that `stride == width`. If that was the case, `stride` would not need to exist at all.
Many hardware image processing blocks have memory alignment requirements that cause `stride` values to have to be larger than `width`; in this case it looks like the camera image signal processor (or one of its... | null | CC BY-SA 4.0 | null | 2023-03-04T01:24:15.653 | 2023-03-04T01:24:15.653 | null | null | 1,344,825 | null |
75,633,108 | 1 | 75,633,398 | null | 1 | 26 | I am working a Django application where I have used python zip_longest function with a the for loop for displaying both the Customer Deposits and Withdrawals in an HTML Table, and I want to get the second zipped list item ID unto a url in a button. How do I achieve this.
Here is my Model:
```
class Witdrawal(models.Mod... | Django get Models ID from Zip_longest() function data on HTML | CC BY-SA 4.0 | null | 2023-03-04T01:22:43.197 | 2023-03-04T03:06:20.110 | 2023-03-04T03:02:02.753 | 17,562,044 | 15,239,717 | [
"python",
"django",
"django-views",
"django-templates",
"django-urls"
] |
75,633,112 | 1 | null | null | 0 | 20 | I am trying to train a sequence model with an RNN component that iterates through each timestep of a training sequence and decides with some probability whether to use the previous model prediction or the ground-truth target as the input for the current timestep. The reason this is done is to attempt to match the data... | Can an RNN be trained using its continuous predicted output as input at each timestep? | CC BY-SA 4.0 | null | 2023-03-04T01:24:01.493 | 2023-03-04T01:24:01.493 | null | null | 11,644,347 | [
"deep-learning",
"recurrent-neural-network",
"sequence-modeling"
] |
75,633,111 | 1 | null | null | -1 | 40 | My buddy and I are working on a simple project, and we decided to go with C this time. We are relatively new to C but wanted to give it a shot anyways. We are trying to read a file and print it to the screen.
Here is our code:
```
//imports libraies
#include <stdio.h>
#include <ncurses.h>
#include <stdlib.h> //relate... | I'm trying to read from a file in C and I have debugged all my errors except for one that I can't figure out | CC BY-SA 4.0 | null | 2023-03-04T01:23:27.753 | 2023-03-04T19:25:24.950 | 2023-03-04T02:08:15.490 | 15,168 | 20,971,335 | [
"c",
"string",
"ncurses"
] |
75,633,114 | 2 | null | 10,404,759 | 0 | null | `ax.get_ylabel()` returns a string, which doesn't define a `set_fontsize` method but `ax.yaxis.get_label()` returns a `matplotlib.text.Text` object, which does; so the following can be used to change fontsize of ylabel as well.
```
ax.yaxis.get_label().set_fontsize(40)
```
You can also change the position of the ylabe... | null | CC BY-SA 4.0 | null | 2023-03-04T01:24:40.687 | 2023-03-04T01:24:40.687 | null | null | 19,123,103 | null |
75,633,110 | 1 | 75,633,218 | null | 0 | 29 | I thought I understood Rust modules, but I am completely lost with `mod` inconsistencies, at least with my own level of understanding.
I have the following folder structure in my project:
```
project
|
- src
|- main.rs
|- mod.rs
|- common
|- error.rs
|- global.rs
|- ids.rs
|- mod.rs
- u... | Rust module weird behavior with multiple use from different file | CC BY-SA 4.0 | null | 2023-03-04T01:23:23.250 | 2023-03-04T02:03:02.680 | 2023-03-04T01:35:32.657 | 613,960 | 613,960 | [
"rust",
"rust-cargo"
] |
75,633,106 | 2 | null | 75,630,907 | 0 | null | From `IronSource` [documentation](https://developers.is.com/ironsource-mobile/air/authentication/#step-1), two Authentications.
[](https://i.stack.imgur.com/8qri6.png)
### #1 Bearer API Authentication
curl command
```
curl --silent --location 'https://platform.ironsrc.com/partners/publisher/auth' \
--header 'secretk... | null | CC BY-SA 4.0 | null | 2023-03-04T01:22:04.237 | 2023-03-04T01:22:04.237 | null | null | 8,054,998 | null |
75,633,116 | 1 | null | null | 0 | 28 | How do you allow TypeScript to implicitly type the value of a object if the key is defined?
```
type SupportedTypes = 'text' | 'currency' | 'date';
const toData : {[key in SupportedTypes] : (arg0: string) => string | number | Date} = {
text: (str: string) : string => str,
currency: (str: string) : number => Nu... | Implicit value of objects | CC BY-SA 4.0 | null | 2023-03-04T01:25:21.590 | 2023-03-04T02:35:12.170 | null | null | 6,517,986 | [
"typescript"
] |
75,633,083 | 1 | null | null | 0 | 11 | I am having trouble getting a simple ASP.NET Core Hello World app working in Docker on Ubuntu 20.04 using SSL. Here are the setup details:
- - - - -
(The reasoning behind this funky setup is that we have a customer who wants to host our app inside a Docker container on their Ubuntu box. However our legacy codebase and... | Trouble getting ASP.NET Core app on Kestrel in Docker on Ubuntu Linux using SSL to work | CC BY-SA 4.0 | null | 2023-03-04T01:15:09.070 | 2023-03-04T01:15:09.070 | null | null | 8,586 | [
"docker",
"asp.net-core",
"ssl",
"ubuntu-20.04",
"kestrel-http-server"
] |
75,633,124 | 1 | null | null | -4 | 13 | Need help in fetching multiple email I'd from string/text.
Input :
```
Test- test@gmail.com
Test-test1@yahoo.com-
test2@gmail.com
abc - test3@gmail.com -
test4@gmail.com
```
Output :
```
test@gmail.com
test1@yahoo.com/test2@gmail.com
test3@gmail.com/test4@gmail.com
```
Please advise how to implement in informat... | How to use regexp_extract | CC BY-SA 4.0 | null | 2023-03-04T01:28:17.923 | 2023-03-04T03:06:04.397 | 2023-03-04T03:06:04.397 | 62,576 | 21,050,465 | [
"informatica"
] |
75,633,118 | 1 | null | null | 0 | 24 | I am building a piece of software and trying to combine my analysis scripts between Spyder 5.4.1 (Python 3.8) and and ImageJ macros. My datasets are a series of .tif stack images, so I have decided to use PyImageJ to access the ImageJ2 gateway interface to load and run my ImageJ macros through Spyder to have the analys... | JVM not running in Spyder 5.4.1 using PyImageJ | CC BY-SA 4.0 | null | 2023-03-04T01:26:28.700 | 2023-03-04T01:26:28.700 | null | null | 8,799,386 | [
"python",
"anaconda",
"jvm",
"spyder",
"pyimagej"
] |
75,633,123 | 1 | null | null | 0 | 11 | I need to install the package psycopg2 on my python 3.10.6 jupiter notebook(Anaconda 3) and my OS Windows 11 Pro 64 bits.
I installed this package on cmd with this two commands:
"pip3 install psycopg2" and "pip3 install psycopg2-binary"
for both the installation was successfull.
[packages installed - checker by pip lis... | Message "No module named 'psycopg2'" on python notebook jupiter for windows after successfull instalation by "pip3 install psycopg2" | CC BY-SA 4.0 | null | 2023-03-04T01:28:15.470 | 2023-03-04T01:28:15.470 | null | null | 21,329,263 | [
"python",
"psycopg2",
"modulenotfounderror"
] |
75,633,125 | 1 | null | null | 0 | 10 | I have an app module with some classes that are generated after compilation by Kapt. The classes are added to:
```
build/generated/source/kapt/com/myproject/myapp/
```
When building on my local MacOS environment, it works just fine and I can access the generated classes correctly.
However, when I try to build the app ... | Android build fails with Ubuntu but works with MacOS | CC BY-SA 4.0 | null | 2023-03-04T01:28:37.933 | 2023-03-04T05:45:41.380 | 2023-03-04T05:45:41.380 | 7,670,262 | 734,752 | [
"android",
"gradle",
"github-actions",
"kapt"
] |
75,633,122 | 2 | null | 75,631,682 | 0 | null |
First of all, thank @Cris Luengo for his comments. I have tried to compare the speed between value class and handle class and I think it is not actually that bad, however by manually optimizing the code (saying the interpreter that this is a pointer and this is a value) you might get some speed advantage of about 30 %... | null | CC BY-SA 4.0 | null | 2023-03-04T01:28:10.580 | 2023-03-04T01:28:10.580 | null | null | 11,792,838 | null |
75,633,128 | 1 | null | null | -2 | 16 | I need a one-liner Jinja2 template for the following task which will used in Ansible.
I have a list of hostnames and want to add protocol and port to every one of them, then join the new string together.
From list `['host1', 'host2', 'host3']` and prefix `'https://'` and suffix `':1234'` i need the following string cre... | How to add prefix and suffix to every element in array in Jinja2? | CC BY-SA 4.0 | null | 2023-03-04T01:28:59.800 | 2023-03-04T09:33:07.290 | 2023-03-04T09:33:07.290 | 519,399 | 519,399 | [
"ansible",
"jinja2"
] |
75,633,131 | 2 | null | 71,631,734 | 0 | null | tl;dr VS Code doesn't support this across files.
Back in 2018 they said this feature is part of the (built-in) css/html extension ([https://github.com/Microsoft/vscode/issues/45852](https://github.com/Microsoft/vscode/issues/45852)) and the core vscode team wasn't going to expand it.
From an issue a few months ago ([ht... | null | CC BY-SA 4.0 | null | 2023-03-04T01:29:59.160 | 2023-03-04T01:29:59.160 | null | null | 3,281,550 | null |
75,633,127 | 1 | null | null | 0 | 26 | as mentioned in the title i am asking for a , if i should the latest version of a library or (e.g. for Python), when or specific version or should i do it total differently?
Right now i use install commands like so to get python modules:
```
RUN pip3 install selenium
RUN pip3 install bs4
RUN pip3 install pandas
```
... | Should I use latest versions of libraries / modules when building an Production Image via Dockerfile? | CC BY-SA 4.0 | null | 2023-03-04T01:28:57.500 | 2023-03-04T01:28:57.500 | null | null | 15,296,650 | [
"python",
"docker",
"dockerfile",
"google-cloud-run",
"linux-containers"
] |
75,633,126 | 1 | 75,633,319 | null | 1 | 50 | I mean they basically assume that there can't be a pointer with any of the first 3 bits (or more) set.
Here's a [function](https://github.com/ruby/ruby/blob/v3_2_1/include/ruby/internal/value_type.h#L223-L251) that determines the type of a value:
```
static inline enum ruby_value_type
rb_type(VALUE obj)
{
if (! RB_... | How is VALUE in Ruby sometimes a pointer, and sometimes not? | CC BY-SA 4.0 | null | 2023-03-04T01:28:45.953 | 2023-03-04T03:00:51.183 | null | null | 52,499 | [
"c",
"ruby"
] |
75,633,132 | 1 | null | null | 0 | 27 | Let's say I have a table of "assignments" from users to groups, where each user can be assigned to at most one group at any given time:
```
create table players_teams_assignments (
user_id integer not null,
assignment_time timestamp not null,
group_id integer,
primary key (
user_id, assign... | In a time-based association, how to obtain the effective association at any given time? | CC BY-SA 4.0 | null | 2023-03-04T01:30:12.357 | 2023-03-04T02:08:52.593 | 2023-03-04T02:08:52.593 | 2,954,547 | 2,954,547 | [
"sql",
"time-series"
] |
75,633,134 | 1 | null | null | 0 | 26 | I use `vite` to bundle my project, deploy it to GitHub, and would like to use GitHub Pages to load it. For deployment, I use GitHub Actions to deploy my project. But when the page is opened, it is blank and shows this error on the network tab and the error message on the console:
> failed to load resource the server re... | GitHub Pages cannot load pages | CC BY-SA 4.0 | null | 2023-03-04T01:30:13.877 | 2023-03-04T05:29:47.543 | 2023-03-04T05:29:47.543 | 7,670,262 | 12,472,832 | [
"github-actions",
"github-pages",
"vite"
] |
75,633,133 | 2 | null | 75,633,132 | 0 | null | One solution involves constructing of time where the assignment is active, and then filtering for intervals that cover the desired time `t`.
For example, we can do this easily using the window function `lead()`:
```
with assignment_intervals as (
select
user_id,
assignment_time as assignment_start,
lead(... | null | CC BY-SA 4.0 | null | 2023-03-04T01:30:12.357 | 2023-03-04T01:36:43.630 | 2023-03-04T01:36:43.630 | 2,954,547 | 2,954,547 | null |
75,633,136 | 2 | null | 75,633,062 | 0 | null | Not sure this will actually help, because you didn't share the error and it's not at all clear what "apply date manually" means, but I'd write it like this:
```
SELECT p.name as projectname, c.name as clientname,
count(sm.id) as salecount,
count(sm.id) * coalesce(pcmap.multiplier,0.0) AS prorated_value,
dat... | null | CC BY-SA 4.0 | null | 2023-03-04T01:30:51.293 | 2023-03-04T01:30:51.293 | null | null | 3,043 | null |
75,633,109 | 2 | null | 44,855,361 | 0 | null |
# For 2023 visitors:
## TL;DR
- `ajax()` only checks the `request` call method, not formatting. The type of the `request` and also the `response` may be anything.- `isJson()` only checks the `request` format. The `request` must be in JSON format. But the `response` may be anything.- `wantsJson()` only checks the ... | null | CC BY-SA 4.0 | null | 2023-03-04T01:22:57.837 | 2023-03-04T01:22:57.837 | null | null | 10,046,569 | null |
75,633,141 | 2 | null | 67,487,713 | 0 | null | With geocube 0.4+:
```
import rioxarray
from geocube.vector import vectorize
data = rioxarray.open_rasterio("myGeotiff.tif").squeeze()
data.name = "myData"
gdf = vectorize(data)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T01:31:19.540 | 2023-03-04T01:31:19.540 | null | null | 11,622,836 | null |
75,633,138 | 1 | null | null | 0 | 24 | Given the following code;
```
using System;
public class Program
{
class Example
{
static void F(object x) => Console.WriteLine("F(object)");
static void F<T>(T x) => Console.WriteLine($"F<T>(T), T is {typeof(T)}");
public static void UsageExample()
{
F("abc");
... | C# generic method selection -- best match criteria | CC BY-SA 4.0 | null | 2023-03-04T01:31:04.270 | 2023-03-04T02:13:29.953 | 2023-03-04T02:13:29.953 | 2,237,631 | 2,237,631 | [
"c#",
"overriding"
] |
75,633,137 | 1 | null | null | 0 | 10 | I have a django app where I am using graphql, it's running on google cloud with 60 minutes timeout. The DB is POSTGRES.
At some point I had to use sqlalchemy to upload a large csv file to the databse, and graphql is not fast enough for that. 20 minutes into the upload I get the following error:
`ERROR in app: Exception... | aldjemy/sqlalchemy engine timeout with google cloud | CC BY-SA 4.0 | null | 2023-03-04T01:31:04.090 | 2023-03-04T01:31:04.090 | null | null | 1,421,322 | [
"django",
"google-cloud-platform",
"sqlalchemy",
"graphql",
"google-cloud-functions"
] |
75,633,145 | 2 | null | 75,633,037 | 1 | null | You can do it by adding padding or margin at the bottom of the h1 tag.
Check this code pen: [codepen.io/gd17/pen/LYJyoeM](https://codepen.io/gd17/pen/LYJyoeM)
`.heading { margin-bottom: 18%; }`
I have added a custom class "heading" to h1 and added % based CSS padding.
| null | CC BY-SA 4.0 | null | 2023-03-04T01:33:43.070 | 2023-03-04T01:33:43.070 | null | null | 3,443,037 | null |
75,633,140 | 2 | null | 75,633,037 | 1 | null | It's not clear whether or not you want the repeating background images, but the foolproof way to say "I want X after Y" is to make them different, consecutive elements in the DOM order. Something like
```
header{
background-image: url("https://sputnick.fr/header.jpg");
height: 200px;
width: 100%;
}
h1{
color:... | null | CC BY-SA 4.0 | null | 2023-03-04T01:31:18.943 | 2023-03-04T01:31:18.943 | null | null | 9,659,759 | null |
75,633,146 | 2 | null | 17,501,424 | 0 | null | I had to tweak @Jilo-Paulose's solution a little bit in my case:
```
const express = require('express');
const ipfilter = require('express-ipfilter');
express()
.use(ipfilter.IpFilter(['127.0.0.1','::1'], {'mode': 'allow'}))
.use(express.static('static'))
.listen(3000);
```
| null | CC BY-SA 4.0 | null | 2023-03-04T01:35:46.163 | 2023-03-04T01:35:46.163 | null | null | 472,610 | null |
75,633,143 | 2 | null | 75,626,871 | 0 | null | If you look at the output of `$IAMGroup`, you should see that the object has both a `Property` () and a `Value` ().
```
$IAMGroup
DisplayName
-----------
Azure_Group01
```
Run `GetType()` on `$IAMGroup`, you'll... | null | CC BY-SA 4.0 | null | 2023-03-04T01:32:47.687 | 2023-03-04T01:32:47.687 | null | null | 18,748,575 | null |
75,633,129 | 1 | null | null | 0 | 22 | I am trying to add missing time steps (with a specific frequency) to a time series with Apache beam. The only solution I came up with was to use pandas and make a combineGlobally which is obviously very inefficent. Is there any more elegant way?
As for now I did:
```
@with_input_types(Dict)
@with_output_types(Dict)
cla... | Add missing time steps in a time series with Apache Beam | CC BY-SA 4.0 | null | 2023-03-04T01:29:14.040 | 2023-03-04T01:40:51.043 | 2023-03-04T01:40:51.043 | 9,035,157 | 9,035,157 | [
"python",
"time-series",
"apache-beam",
"missing-data"
] |
75,633,148 | 2 | null | 75,616,497 | 1 | null | The reason for this error is likely due to the service account not being used to impersonate the target user, you can read more about it here:
- [The place where it says you need the domain wide authority](https://developers.google.com/gmail/api/guides/delegate_settings#:%7E:text=This%20requires%20use%20of%20a%20servic... | null | CC BY-SA 4.0 | null | 2023-03-04T01:36:22.077 | 2023-03-04T01:36:22.077 | null | null | 17,987,690 | null |
75,633,149 | 2 | null | 75,633,037 | 1 | null | You have set a background image on the `<body>` element which means the whole page. If you want to have content appear after an image, apply the background image to an element like `<main>` instead.
```
main {
background-color: #15141A;
background-image: url("https://sputnick.fr/header.jpg");
color: white;
font... | null | CC BY-SA 4.0 | null | 2023-03-04T01:36:29.323 | 2023-03-04T01:36:29.323 | null | null | 4,797,603 | null |
75,633,144 | 1 | null | null | -1 | 7 | > I am writing js code for making smaller version of slot machine but I am facing difficulty in applying changing image. I am using 2D array to store images and a function that uses random number to call random Image. function showImage() is working, but I dont think its an appropriate method. I need to know where I am... | Applying same function to multiple images elements | CC BY-SA 4.0 | null | 2023-03-04T01:33:29.887 | 2023-03-04T01:36:18.607 | 2023-03-04T01:36:18.607 | 15,177,922 | 15,177,922 | [
"javascript"
] |
75,633,147 | 1 | null | null | 0 | 23 | Trying to get back to python with a web3 project. I am trying to extrapolate precise values from a tx (from, to, value) to crosscheck via python if those values are the expected one.
```
txtest = web3.eth.get_transaction('0x877af182f545cde910544f2f869429fc7bd66f24fb58b42b1f691667f26c95c4')
finaltx = txtest.to
print('Th... | Trying to tokenise Ethereum TX sender "from" to crosscheck values | CC BY-SA 4.0 | null | 2023-03-04T01:36:14.460 | 2023-03-04T03:20:22.400 | 2023-03-04T03:20:22.400 | 62,576 | 21,329,285 | [
"python-3.x",
"ethereum",
"web3py"
] |
75,633,152 | 2 | null | 75,609,795 | -1 | null | Use `Math.random().toString()`
Do you mean the entire for loop takes two seconds, or one iteration?
| null | CC BY-SA 4.0 | null | 2023-03-04T01:37:40.533 | 2023-03-04T02:22:41.270 | 2023-03-04T02:22:41.270 | 11,310,706 | 21,322,750 | null |
75,633,115 | 1 | 75,633,657 | null | 0 | 26 | I am trying to upgrade from the 1.X ServiceStack/Client library to the 2.X version I got the following error when running "ng build" after the upgrade (latest 1.X works fine):
```
node:fs - Error: Module build failed: UnhandledSchemeError: Reading from "node:fs" is not handled by plugins (Unhandled scheme).
Webpack sup... | ServiceStack/Client and "Reading from "node:fs" is not handled by plugins (Unhandled scheme)." error | CC BY-SA 4.0 | null | 2023-03-04T01:25:19.013 | 2023-03-04T04:32:17.267 | 2023-03-04T02:49:52.093 | 2,232,812 | 2,232,812 | [
"servicestack"
] |
75,633,150 | 1 | null | null | 0 | 5 | When I open an exported image from GEE in Qgis, I see that the no data has no value and is shown as n/a. I would to know if there is a way to export the image from GEE with a value already assigned for no-data and that value being recognized as no-data in Qgis.
I can assign the no-data value in Qgis without a problem, ... | GEE export raster with value for no-data | CC BY-SA 4.0 | null | 2023-03-04T01:36:40.987 | 2023-03-04T01:36:40.987 | null | null | 21,190,266 | [
"javascript",
"libgee"
] |
75,633,151 | 2 | null | 50,400,183 | 0 | null | Here is how I solved this issue. The issue is because you cannot have an external image URL inside of your canvas. You must fetch the image and create a local copy of it. In my example I am setting the background of the canvas to the image but you can do the same for adding images to the canvas.
```
fetch("https://i.im... | null | CC BY-SA 4.0 | null | 2023-03-04T01:37:15.260 | 2023-03-04T01:37:15.260 | null | null | 16,691,318 | null |
75,633,153 | 1 | 75,633,209 | null | 0 | 72 | ```
#include <iostream>
class Dude
{
public:
int age;
Dude(int age)
{
this->age = age;
}
};
int main(int argc, char* argv[])
{
Dude *dude1 = new Dude(21);
std::cout << dude1->age << '\n';
delete dude1;
return 0;
}
```
Is this the correct way to deallocate the memory of `dud... | Is this the correct way to deallocate a new object? | CC BY-SA 4.0 | null | 2023-03-04T01:37:53.737 | 2023-03-04T02:50:25.517 | 2023-03-04T01:50:28.533 | 65,863 | 9,620,962 | [
"c++",
"class",
"destructor"
] |
75,633,135 | 2 | null | 74,869,146 | 1 | null | The `od` command will accumulate multiple formats with a single `-t` option (e.g., `-t u1f4d2` in your case), and output a line for each type requested. Since you have multiples of the same type, adding them to the `-t` option only adds redundant information, so we can just use the representative types. Attempting to... | null | CC BY-SA 4.0 | null | 2023-03-04T01:30:46.817 | 2023-03-04T01:30:46.817 | null | null | 1,973,259 | null |
75,633,142 | 1 | 75,633,233 | null | 0 | 36 | I have a dataframe (df_old), that has a variable label and I want to extract the labels and put it into respective variables in another dataframe (df_new).
In a loop, I'd like to use this code but it doesn't work
```
attr( df_new[ , j] , "label") <- attr( df_old[ , j] , "label")
```
That doesn't work, so I've got aro... | extract variable label from a dataframe to assign to a variable in another dataframe | CC BY-SA 4.0 | null | 2023-03-04T01:32:38.327 | 2023-03-04T02:31:33.020 | 2023-03-04T01:56:28.070 | 12,857,915 | 12,857,915 | [
"r"
] |
75,633,159 | 1 | null | null | 0 | 23 | [http://man.opencl.org/shuffle.html](http://man.opencl.org/shuffle.html)
This shuffles the elements of a vector type, based on a mask. Is there an equivalent in CUDA ?
| Is there a CUDA equivalent to the OpenCL shuffle operation? | CC BY-SA 4.0 | null | 2023-03-04T01:39:43.897 | 2023-03-04T01:39:43.897 | null | null | 244,005 | [
"cuda",
"opencl"
] |
75,633,158 | 1 | null | null | 0 | 8 | I enabled Just My Code in VS 2022, however, when I step in with F11 it takes me into code that's not mine.
I see various modules listed as User Code (e.g. Newtonsoft.Json.dll has User Code set to yes). These show symbol status as loaded. Most others have status of Cannot find or open the PDB file.
This is making debugg... | Visual Studio Just My Code still steps into framework | CC BY-SA 4.0 | null | 2023-03-04T01:39:32.310 | 2023-03-04T01:39:32.310 | null | null | 8,359,617 | [
"visual-studio",
"debugging"
] |
75,633,157 | 2 | null | 75,626,869 | 1 | null | You can use simpler way like this spec:
```
[
{
"operation": "modify-overwrite-beta",
"spec": {
"*": {
"MiddleName_temp1": "=split('\"',@(1,MiddleName))",
"MiddleName_temp2": "=join('',@(1,MiddleName_temp1))",
"MiddleName_temp3": "=split('-',@(1,MiddleName_temp2))",
"Midd... | null | CC BY-SA 4.0 | null | 2023-03-04T01:39:01.837 | 2023-03-04T01:39:01.837 | null | null | 8,428,397 | null |
75,633,154 | 1 | 75,633,416 | null | 0 | 29 | I have a java application that uses aws kinesis stream.
In the application, I get the student data in real time via kinesis stream and I have to make some action depending on the student id.
There is a list of students that I need to query from the database, and the each student from kinesis stream needs a checking if ... | How to share the ArrayList across spring boot | CC BY-SA 4.0 | null | 2023-03-04T01:38:14.227 | 2023-03-04T03:30:00.210 | null | null | 18,613,635 | [
"java",
"spring",
"spring-boot",
"javabeans",
"autowired"
] |
75,633,156 | 1 | null | null | 0 | 16 | I've created a form called #form-new-workout to add multiple (exercise) objects to the exercises array in my Mongoose Workout Schema. Each object contains the exercise name, reps, weight, seps, and note.
[newworkout.pug file with form](https://i.stack.imgur.com/w0zGW.png)
I have multiple instances of the .add-new-exerc... | I want to submit multiple objects from a form with the same field names but only getting 1st object. How do I get the field values for the 2nd object? | CC BY-SA 4.0 | null | 2023-03-04T01:38:36.843 | 2023-03-04T17:12:19.057 | 2023-03-04T17:12:19.057 | 21,329,270 | 21,329,270 | [
"arrays",
"forms",
"object",
"post"
] |
75,633,155 | 1 | null | null | 0 | 36 | I'm trying to better understand IoC/DI, in particular the concept of scopes.
I'm using a sample WPF app (repo [here](https://github.com/InteXX/FriendStorage)) from a [Pluralsight course](https://app.pluralsight.com/library/courses/wpf-mvvm-test-driven-development-viewmodels/table-of-contents) (great service, BTW) and m... | How to avoid memory leaks with Autofac? | CC BY-SA 4.0 | null | 2023-03-04T01:38:33.787 | 2023-03-04T16:47:32.273 | 2023-03-04T12:43:12.093 | 722,393 | 722,393 | [
"wpf",
"dependency-injection",
"memory-leaks",
"inversion-of-control",
"autofac"
] |
75,633,163 | 1 | null | null | 0 | 13 | I am creating a blog with NextJS and MDX, and I would like to add a `target="_blank"` to external links.
Normally I do it with regular Markdown using the following format `[words](link){:target="blank"}` but this is not working properly in MDX.
| How can I use target="blank" in an external link on MDX? | CC BY-SA 4.0 | null | 2023-03-04T01:41:01.810 | 2023-03-04T01:41:01.810 | null | null | 10,818,506 | [
"reactjs",
"next.js",
"markdown",
"mdx"
] |
75,633,161 | 2 | null | 75,524,764 | 0 | null | If you want your virtualenv to be created in your project folder, and not in the default `~/.local/share/virtualenvs/` folder, set the environment variable `PIPENV_VENV_IN_PROJECT` to `1` (`export PIPENV_VENV_IN_PROJECT=1` in your terminal).
[See the pipenv doc](https://pipenv.pypa.io/en/latest/advanced/#pipenv.environ... | null | CC BY-SA 4.0 | null | 2023-03-04T01:40:09.777 | 2023-03-04T01:40:09.777 | null | null | 11,080,037 | null |
75,633,160 | 2 | null | 34,889,316 | 0 | null | `ax.xaxis.label` or `ax.yaxis.label` also return a `matplotlib.text.Text` object, so you can call `set()` or `set_size()` on it to change the fontsize (you can also change the position with the former).
```
ax.xaxis.label.set_size(20)
```
A working example:
```
fig, ax = plt.subplots(figsize=(5,3))
ax.plot(range(10), ... | null | CC BY-SA 4.0 | null | 2023-03-04T01:40:06.617 | 2023-03-04T01:40:06.617 | null | null | 19,123,103 | null |
75,633,162 | 2 | null | 75,613,954 | 0 | null | `IN ( SELECT ... )` is sometime slow; see if you can use a `JOIN` instead.
These indexes may help:
```
partenze_destino:
INDEX(IdSocieta, IdPartDest, idpartdest, codice, idprecedente)
INDEX(idpartdest, codice, idprecedente)
INDEX(IdLivello, IdPartDest)
tariffe_dettaglio:
INDEX(IdTariffaTest, IdParten... | null | CC BY-SA 4.0 | null | 2023-03-04T01:40:33.603 | 2023-03-04T01:40:33.603 | null | null | 1,766,831 | null |
75,633,164 | 2 | null | 75,633,037 | 1 | null | I suppose you want that background-image only behind the `h1` header? Well, then assign it only to the `h1`. Add `padding` to make it higher and set `margin-top` to `0` to make it start right at the top.
```
body {
background-color: #15141A;
color: white;
font-family: "Arial";
font-size: 16px;
}
h1 {
backgrou... | null | CC BY-SA 4.0 | null | 2023-03-04T01:41:10.967 | 2023-03-04T01:41:10.967 | null | null | 5,641,669 | null |
75,633,166 | 1 | 75,633,187 | null | 2 | 37 | Just for a basic understanding of what I am referring too, the `frequency` column is what I am trying to create, based on the number of times fruits has appeared prior to that given row
| Fruit | Frequency | Date |
| ----- | --------- | ---- |
| Apple | 1 | |
| Banana | 1 | |
| Orange | 1 | |
| Apple | 2 | | ... | Python: Create new column that numbers how many occurrences has taken place from another column | CC BY-SA 4.0 | null | 2023-03-04T01:41:21.793 | 2023-03-04T06:35:25.033 | 2023-03-04T04:46:44.817 | 10,315,163 | 21,329,295 | [
"python",
"pandas"
] |
75,633,168 | 2 | null | 75,619,205 | 0 | null | You need to add the `existing` parameter to each anonymous object in your collection of parameters values that you're passing to `ExecuteAsync`.
For example, this ends up inserting just one row in the database and `Field3` has the value `"three"`:
```
var values = new List<Object> {
new { key = "xxx", field1 = "xxx", ... | null | CC BY-SA 4.0 | null | 2023-03-04T01:42:21.443 | 2023-03-04T01:42:21.443 | null | null | 23,633 | null |
75,633,172 | 1 | null | null | 0 | 16 | How can I set the default buttons in the config file for EmulatorJS?
I know there is a way to set them when the game has loaded, but I don't know how to set them in the configuration.
| How can I set the default buttons in the config file for EmulatorJS? | CC BY-SA 4.0 | null | 2023-03-04T01:44:22.773 | 2023-03-04T01:56:36.087 | 2023-03-04T01:56:36.087 | 11,107,541 | 21,281,733 | [
"javascript",
"emulatorjs"
] |
75,633,167 | 1 | null | null | 0 | 26 | So i need to scale up the size of a sphere i plotted with polar coordinates, but I am unsure if Im doing it correctly in a way that scales properly.
```
#og code
import matplotlib.pyplot as plt
import numpy as np
plt.rcParams["figure.figsize"] = [7.00, 3.50]
plt.rcParams["figure.autolayout"] = True
fig = plt.figure()
... | how to scale a polar plotted sphere up to a different radius? python | CC BY-SA 4.0 | null | 2023-03-04T01:42:19.117 | 2023-03-04T02:09:32.173 | null | null | 21,329,127 | [
"python",
"numpy",
"matplotlib"
] |
75,633,171 | 1 | null | null | 0 | 24 | I'm trying to develop a regular expression that matches data with this format:
```
430::1820-07-27::Vitorino Pinheiro Lacerda::Rodrigo Pinheiro Lacerda::Custodia Maria Alvares::::
430::1873-05-12::Vitorino Teixeira Pires::Jose Teixeira::Ana Martins Pires::Doc.danificado.::
425::1724-09-06::Xavier Araujo Costa::Bernardo... | Problem to capture specific group in regular expression | CC BY-SA 4.0 | null | 2023-03-04T01:43:12.220 | 2023-03-04T11:16:01.913 | 2023-03-04T01:46:47.373 | 843,953 | 14,150,117 | [
"python",
"regex"
] |
75,633,174 | 1 | 75,633,254 | null | 0 | 20 | I have a `DataFrame` like this:
```
Date Close Symbol
0 2018-03-05 44.21 AAPL
1 2018-03-06 44.17 AAPL
2 2018-03-07 43.76 AAPL
3 2018-03-08 44.24 AAPL
4 2018-03-09 44.99 AAPL
5 2018-03-12 45.43 AAPL
6 2018-03-13 44.99 AAPL
7 2018-03-14 44.61 AAPL
8 2018-03-15 44.66 AAPL
9 2018-03-16 44.51 ... | Percent change of dataframe | CC BY-SA 4.0 | null | 2023-03-04T01:44:48.733 | 2023-03-04T02:17:04.053 | null | null | 817,659 | [
"pandas",
"group-by"
] |
75,633,176 | 2 | null | 5,212,018 | 0 | null | Use this code:
```
double x = 1500;
for(int k = 0; k<10 ; k++){
double t = 0;
for(int i=0; i<12; i++){
t += x * 0.0675;
x += x * 0.0675;
}
cout<<"Bas ana: "<< fixed << x <<"\tSon faiz: "<<t<<"\tSon ana: "<<x+t<<endl;
}
```
- You can use " << fixed << " to show exact numbers and ... | null | CC BY-SA 4.0 | null | 2023-03-04T01:45:30.847 | 2023-03-05T03:13:28.077 | 2023-03-05T03:13:28.077 | 17,369,846 | 17,369,846 | null |
75,633,173 | 1 | null | null | 0 | 9 | I am sending an adaptive card to a Microsoft Teams chat using the Graph API. I have been following [this in the documentation](https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=csharp#example-3-send-message-containing-cards), but I've changed `application/vnd.microsoft.card.thumbnail` to `... | Adaptive Cards in MS Teams - Header and Notification | CC BY-SA 4.0 | null | 2023-03-04T01:44:44.730 | 2023-03-04T01:44:44.730 | null | null | 269,035 | [
"microsoft-teams",
"adaptive-cards"
] |