Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,637,450 | 1 | null | null | 0 | 10 | I have followed [this thread](https://designly.biz/blog/post/react-markdown-how-to-create-a-copy-code-button) to add a dark block background for code when rendering markdown in React. Here is the code and codesandbox: [https://codesandbox.io/s/happy-flower-2g42h4?file=/src/PostBody.tsx](https://codesandbox.io/s/happy-f... | Add a dark block background to tables when rendering markdown in React | CC BY-SA 4.0 | null | 2023-03-04T17:39:45.257 | 2023-03-04T20:02:25.483 | 2023-03-04T20:02:25.483 | 702,977 | 702,977 | [
"reactjs",
"markdown",
"remarkjs",
"react-markdown"
] |
75,637,439 | 1 | null | null | 0 | 15 | I want to extract silhouette from images that comes from Microsoft Kinect. I have this files saved as .mat file.
This is my code for now:
```
python
import scipy.io
import cv2
import numpy as np
# Load the data from kinect_data.mat
data = scipy.io.loadmat(r"C:\Users\01130309\Desktop\Inżynierka\inzynierka_python\ve... | How to improve the silhouette extraction algorithm in Python? | CC BY-SA 4.0 | null | 2023-03-04T17:38:11.650 | 2023-03-04T23:15:24.563 | 2023-03-04T23:15:24.563 | 1,377,097 | 21,332,618 | [
"python",
"image",
"image-processing",
"cv2"
] |
75,637,463 | 1 | null | null | -1 | 13 | [how to resolve this error regarding list tuple s and dictionary main problem coming is I want to split the string so how can I am confused in that] ([https://i.stack.imgur.com/DWGOP.png](https://i.stack.imgur.com/DWGOP.png))
expected to get the list values as values in dictionary.
| how to convert a list to dictionary having values of dictionary in list and keys defined | CC BY-SA 4.0 | null | 2023-03-04T17:40:51.933 | 2023-03-04T17:42:52.413 | 2023-03-04T17:42:52.413 | 7,329,832 | 21,332,737 | [
"python"
] |
75,637,398 | 2 | null | 75,621,148 | 1 | null | You said:
> I found that you don't need to use `weak self` inside a `Task` as long as you are sure that the `Task` will end.
Yes, one frequently doesn’t need to use `[weak self]` capture list if one knows that this temporary strong reference will eventually be released.
(It should be recognized that avoidance of strong... | null | CC BY-SA 4.0 | null | 2023-03-04T17:31:29.110 | 2023-03-04T20:48:27.233 | 2023-03-04T20:48:27.233 | 1,271,826 | 1,271,826 | null |
75,637,464 | 2 | null | 75,637,280 | -1 | null |
```
def remove_minimum(values):
return sorted(values)[1:]
```
```
def remove_minimum(values):
values.remove(sorted(values)[:1][0])
return values
```
| null | CC BY-SA 4.0 | null | 2023-03-04T17:40:53.563 | 2023-03-04T17:45:11.193 | 2023-03-04T17:45:11.193 | 20,959,773 | 20,959,773 | null |
75,637,468 | 1 | null | null | 0 | 7 | I don't know if this is a too simple question but I'm wondering how to avoid an external Upkeep run my checkUpkeep function of my contract if, at the end, my contract's address is public and that's the only thing you need to run the checkUpkeep. I want to avoid that someone can call this function of my contract and mod... | How to avoid another upkeep run my checkUpkeep function Chainlink | CC BY-SA 4.0 | null | 2023-03-04T17:42:18.653 | 2023-03-04T17:42:18.653 | null | null | 9,563,674 | [
"ethereum",
"solidity",
"chainlink"
] |
75,637,469 | 2 | null | 72,947,732 | 0 | null | Specific example:
settings > WiFi > Details
Edit the file `/etc/hosts`, and add the following line:
`192.168.0.105 mydomain.com`
[](https://i.stack.imgur.com/NmHJP.png)
| null | CC BY-SA 4.0 | null | 2023-03-04T17:42:22.480 | 2023-03-04T17:42:22.480 | null | null | 4,241,624 | null |
75,637,467 | 1 | null | null | 0 | 9 | I refactored all my components' constructors with the new inject function from Angular v14+
```
@Component({
selector: 'app-cmpt',
templateUrl: './cmpt.component.html',
styleUrls: ['./cmpt.component.scss'],
})
export class MyComponent implements OnInit {
private fb = inject(NonNullableFormBuilder);
private se... | How to inject dependencies in Jest tests, injected with the new Angular14 inject function? | CC BY-SA 4.0 | null | 2023-03-04T17:42:10.650 | 2023-03-04T17:42:10.650 | null | null | 3,740,223 | [
"angular",
"ts-jest"
] |
75,637,460 | 1 | null | null | 0 | 12 | here
I am trying to upload an Image to digitalOcean spaces via a react app and `aws-sdk/client-s3`
an error thrown in says `Fetch failed loading: PUT MY-DO-SPACES-URL`
when incepting in the error says : `cross error preflight Missing Allow Origin Header`
I can upload an image from react-native app
`s3.js` file confi... | CORS error : preflight missing Access-Control-Allow-Origin | CC BY-SA 4.0 | null | 2023-03-04T17:40:38.090 | 2023-03-04T17:40:38.090 | null | null | 12,863,176 | [
"reactjs",
"amazon-s3",
"aws-sdk",
"digital-ocean"
] |
75,637,466 | 2 | null | 75,637,437 | 0 | null | The issue is likely caused by the showTheObjects function, specifically the line `document.getElementByID('divToDisplayObjects').innerHTML = "";.` This line clears the contents of the HTML element with the ID divToDisplayObjects every time the showTheObjects function is called. This means that when the changeSortOfObje... | null | CC BY-SA 4.0 | null | 2023-03-04T17:41:58.037 | 2023-03-04T17:41:58.037 | null | null | 14,575,873 | null |
75,637,470 | 2 | null | 75,637,342 | 0 | null | I make it maybe more simpler to understand what I want:
```
async ngOnInit(){
let thereIWantData;
await this.attractionService.getAtttractions()
.then(thereNot1 => {
console.log("Data from promise")
console.log(thereNot1);
thereNot1.pipe(first()).subscribe(thereNot2 => {
... | null | CC BY-SA 4.0 | null | 2023-03-04T17:42:28.613 | 2023-03-04T17:42:28.613 | null | null | 7,156,513 | null |
75,637,472 | 1 | null | null | -1 | 35 | I want a code that swaps the diagonals in a matrix, in C.
The matrix must be M*M. This is my code at the moment:
```
#include <stdio.h>
#define m 4
int
main()
{
// Write C code here
int arr[m][m] = {
{1, 2, 3, 5},
{4, 1, 6, 0},
{7, 8, 1, 3},
{0, 5, 4, 1}
};
int i, j, k... | Swap diagonals with matrix in C language | CC BY-SA 4.0 | null | 2023-03-04T17:42:52.387 | 2023-03-04T19:52:39.640 | 2023-03-04T17:57:46.350 | 15,168 | 17,432,366 | [
"c",
"swap",
"diagonal"
] |
75,637,441 | 1 | null | null | 2 | 40 | I have some data like this
```
let dataCart = [
{
"id": "001",
"name": "Product 1",
"price": 23,
"image": "images1.jpg",
"group_option": null,
"qty": 1,
"note": ""
},
{
"id": "002",
"name": "Product 2",
"price": 25,
"image": "images2.JPG",
"group_option": null,
... | Find index in nested array objects , check if the data is the same value | CC BY-SA 4.0 | null | 2023-03-04T17:38:51.800 | 2023-03-04T20:38:10.993 | 2023-03-04T20:33:26.357 | 2,487,565 | 21,332,636 | [
"javascript",
"arrays",
"nested"
] |
75,637,476 | 2 | null | 75,637,383 | 0 | null | You may try the below code
```
library(lubridate)
months <- time_length(as.numeric(difftime(as.Date(Sys.Date()) , as.Date("2015-08-20"), units = 'days')), 'month')
years <- time_length(as.numeric(difftime(as.Date(Sys.Date()) , as.Date("2015-08-20"), units = 'days')), 'year')
```
| null | CC BY-SA 4.0 | null | 2023-03-04T17:43:17.973 | 2023-03-04T17:43:17.973 | null | null | 14,454,397 | null |
75,637,475 | 1 | null | null | 0 | 6 | On form submission, I get a huge red box that says, "Almost There. Please help us fight spam by clicking the box below", but there is no box to click.
1. Is this a bug? I have a recaptcha activated on my localhost for my test site.
2. Is there a way to customize this? Or have themes?
[](https://i.stack.imgur.com/ShJ... | No box to click to help fight spam | CC BY-SA 4.0 | null | 2023-03-04T17:43:16.553 | 2023-03-04T17:43:16.553 | null | null | 3,826,173 | [
"form-submit"
] |
75,637,479 | 2 | null | 75,637,280 | 0 | null | you can return an orderer list and slice it, removing the first value.
```
def remove_min(values):
return sorted(values)[1:]
```
| null | CC BY-SA 4.0 | null | 2023-03-04T17:43:28.460 | 2023-03-04T17:43:28.460 | null | null | 11,406,714 | null |
75,637,465 | 1 | null | null | 0 | 13 | I have a problem where I can trigger an event in one method of an Angular 11 child component but cannot trigger the event in another method of the same child component. It was previously working where I was able to successfuly call the event from any function and it worked, but I cannot figure out what I changed that b... | Angular 11 event fires in one method but not another | CC BY-SA 4.0 | null | 2023-03-04T17:41:01.157 | 2023-03-04T17:41:01.157 | null | null | 12,200,602 | [
"javascript",
"angular",
"typescript"
] |
75,637,478 | 2 | null | 75,634,311 | 1 | null | The plot connects all values of the series, to avoid the expected "anomaly", you can assign a transparent color after the `newSession` event:
```
plot(PlotB1 ? upper1 : na, color = newSession ? color(na) : color.navy, linewidth = 1)
```
[](https://i.stack.imgur.com/HEYVt.png)
| null | CC BY-SA 4.0 | null | 2023-03-04T17:43:25.067 | 2023-03-04T17:43:25.067 | null | null | 13,723,165 | null |
75,637,483 | 2 | null | 75,637,456 | 0 | null | You're opening it as a binary file, but you should open it as a text file. Change this:
```
with open('persons.csv', 'wb') as csvfile:
```
To this:
```
with open('persons.csv', 'w') as csvfile:
```
| null | CC BY-SA 4.0 | null | 2023-03-04T17:44:37.120 | 2023-03-04T17:44:37.120 | null | null | 15,381,660 | null |
75,637,482 | 2 | null | 75,636,199 | 0 | null | ```
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (e.CloseReason == CloseReason.WindowsShutDown)
{
e.Cancel = true; // cancel the shutdown
MessageBox.Show("Cancelling Windows shutdown");
// execute the shutdown /a command to abort the shutdown
Proces... | null | CC BY-SA 4.0 | null | 2023-03-04T17:44:31.640 | 2023-03-04T17:44:31.640 | null | null | 1,012,111 | null |
75,637,474 | 1 | null | null | 0 | 18 | I get the following error while using Provider in Flutter :
`The following assertion was thrown while dispatching notifications for CampaignProvider: setState() or markNeedsBuild() called during build. This _InheritedProviderScope<CampaignProvider?> widget cannot be marked as needing to build because the framework is a... | How to solve setState() or markNeedsBuild() called during build error in Flutter when using Provider? | CC BY-SA 4.0 | null | 2023-03-04T17:42:56.590 | 2023-03-05T05:20:10.187 | null | null | 15,852,541 | [
"flutter",
"mobile-application",
"flutter-provider"
] |
75,637,481 | 1 | null | null | 0 | 7 | I created a k3s cluster and disabled the service loadbalancer & traefik. I installed metallb via a manifest file. Also, I created a ConfigMap for Metallb below named "config" with an address pool so I don't know why the metallb-controller is saying "no available ips".
```
ubuntu@mark:~$ k describe svc nginx
Name: ... | k3s + MetalLB: metallb-controller Failed to allocate IP for "default/nginx": no available IPs | CC BY-SA 4.0 | null | 2023-03-04T17:43:55.300 | 2023-03-04T17:43:55.300 | null | null | 2,098,702 | [
"kubernetes",
"kubernetes-ingress",
"k3s",
"metallb"
] |
75,637,485 | 2 | null | 75,627,343 | 0 | null | I would just use code to maintain the extra column. so, in the form(s) that allow edit of that customer?
Just put in the post code or whatever field a after update event for that control on that form that "shoves" into that country code colum the first 2 characters.
eg like this:
```
Private Sub PostalCode_AfterUpdate(... | null | CC BY-SA 4.0 | null | 2023-03-04T17:45:23.657 | 2023-03-04T17:45:23.657 | null | null | 10,527 | null |
75,637,484 | 1 | null | null | 0 | 8 | So my goal is to simulate the mouvement/motion of a space capsule from low Earth orbit with initial coditions emuating initial thrust.
Here the code,
Is it right? I know that the next step is to implement Runge Kutt's algorithm (to solve the ode), but shouldn't I go to the state space representation (knowing that the n... | Motion equation of a space engin in low earth orbit | CC BY-SA 4.0 | null | 2023-03-04T17:45:12.237 | 2023-03-04T17:45:12.237 | null | null | 7,694,396 | [
"numerical-methods",
"estimation"
] |
75,637,486 | 2 | null | 75,636,852 | 0 | null | Something like this:
```
function aramex() {
const sh = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("aramex");
const sr = 2; //data start row
const vs = sh.getRange(sr, 1, sh.getLastRow() - sr + 1, sh.getLastColumn()).getValues();
const url = "https://rahatystore.matjrah.store/api/rest_admin/orderhisto... | null | CC BY-SA 4.0 | null | 2023-03-04T17:45:25.500 | 2023-03-04T17:45:25.500 | null | null | 7,215,091 | null |
75,637,473 | 2 | null | 75,619,507 | 0 | null | So as [Peterrrrrrr](https://stackoverflow.com/users/3111843/peterrrrrrr) said you need to format your code right and dont use chat gpt since its data is limited and it provides too much errors. I made some changes to your code so it can join the voice channel when a user is already in a voice channel. If not the user g... | null | CC BY-SA 4.0 | null | 2023-03-04T17:42:55.610 | 2023-03-04T18:03:15.387 | 2023-03-04T18:03:15.387 | 17,381,704 | 17,381,704 | null |
75,637,487 | 2 | null | 75,637,246 | 0 | null | Use `REGEXP_REPLACE` :
`^\.` to catch `.` when it is first character.
```
SELECT NBUN62 as NUMERIC,
REGEXP_REPLACE(char(NBUN62), '^\.' , '0.') AS ADD_LEADING_ZERO
FROM Cost_File
```
[Demo here](https://dbfiddle.uk/32nHTuxM)
| null | CC BY-SA 4.0 | null | 2023-03-04T17:45:58.520 | 2023-03-04T17:52:07.653 | 2023-03-04T17:52:07.653 | 4,286,884 | 4,286,884 | null |
75,637,488 | 2 | null | 75,534,671 | 0 | null | Better to use $[expr](https://www.mongodb.com/docs/manual/reference/operator/query/expr/). See playground [here](https://mongoplayground.net/p/t4gOS3-Fucc). AFAIK, `$expr` is not supported in typed form by .net driver. See [here](https://stackoverflow.com/questions/68395490/how-to-use-raw-mongodb-aggregation-query-in-c... | null | CC BY-SA 4.0 | null | 2023-03-04T17:46:11.067 | 2023-03-04T17:46:11.067 | null | null | 9,492,730 | null |
75,637,491 | 2 | null | 64,437,656 | 0 | null | Update for 3/2022, no longer supports node@12. I had node@18 installed, and by setting
```
"engines": {
"node": "18"
}
```
in package.json I was able to fix this issue
| null | CC BY-SA 4.0 | null | 2023-03-04T17:46:30.760 | 2023-03-04T17:46:30.760 | null | null | 1,487,260 | null |
75,637,489 | 1 | null | null | 0 | 19 | when I add new value in List box it should be updated with new value of same id. I am unable to do it. I am trying to sum values of same id from Datagridview and want to display result in List box My code is not working.
```
Dim results = New Dictionary(Of String, List(Of Decimal))()
For i = 0 To DataGridView2.Rows... | How to update List box with new added value of same id? | CC BY-SA 4.0 | null | 2023-03-04T17:46:21.873 | 2023-03-04T17:57:16.673 | 2023-03-04T17:57:16.673 | 719,186 | 8,852,827 | [
"vb.net",
"winforms"
] |
75,637,492 | 2 | null | 75,635,181 | 1 | null | If you had looked to see what the error was with `ZSTD_getErrorName(countSize)`, you would get "error Destination buffer is too small". How did you come up with that formula? In any case, you don't need a formula. There's already a function to tell you how big to make the output buffer, `ZSTD_compressBound(srcSize)`. T... | null | CC BY-SA 4.0 | null | 2023-03-04T17:46:33.067 | 2023-03-04T17:46:33.067 | null | null | 1,180,620 | null |
75,637,490 | 1 | null | null | -1 | 15 | I have Mysql table, with dates, represented as "4 мар. 2023 г." ("мар." - is russian March)
I need to parse this date in PHP, and format it like Y-m-d.
Trying:
```
$formatter = new IntlDateFormatter("ru_RU", IntlDateFormatter::SHORT, IntlDateFormatter::NONE);
$unixtime=$formatter->parse($dta);
echo date('Y-m-d', $unixt... | Parsing date from string in regional format | CC BY-SA 4.0 | null | 2023-03-04T17:46:30.503 | 2023-03-04T18:42:06.810 | null | null | 5,518,907 | [
"php"
] |
75,637,480 | 1 | null | null | 0 | 23 | I just started new project, installed latest Vite with React template. Then installed [React-Router-DOM](https://www.npmjs.com/package/react-router-dom) and fallowed a guide for setting it up. Using `createBrowserRouter` and `<RouterProvider router={router} />`. And Tailwind does not apply at all.
I have found ([relate... | TailwindCSS does not apply React - Vite | CC BY-SA 4.0 | null | 2023-03-04T17:43:35.767 | 2023-03-04T17:50:16.107 | 2023-03-04T17:50:16.107 | 11,858,790 | 11,858,790 | [
"reactjs",
"react-router",
"tailwind-css",
"vite"
] |
75,637,477 | 1 | null | null | 1 | 24 | I'm a Unity and C# beginner and I'm working on a game for a school project. I've mainly followed tutorials so far and I've run into a problem that I feel is very specific for a tutorial to help. I've got a selection menu with a Characters game object, and within it I have 3 prefabs of the characters I want to use. My i... | How would I be able to attach the main camera to different characters and make them have their own movement script when they are selected? | CC BY-SA 4.0 | null | 2023-03-04T17:43:22.983 | 2023-03-04T22:28:56.660 | 2023-03-04T17:51:42.397 | 21,291,830 | 21,291,830 | [
"c#",
"unity3d",
"unityscript"
] |
75,637,495 | 2 | null | 75,637,172 | 0 | null | I think I solved it recursively, but there might be a better solution for it.
```
private fun entryToOp(entries: ArrayDeque<AmenityDTO>, currentOp: Op<Boolean>?): Op<Boolean> {
val entry = entries.removeFirst()
val name = entry.name
val value = entry.value
val newOp = if (currentOp ==... | null | CC BY-SA 4.0 | null | 2023-03-04T17:46:55.643 | 2023-03-04T18:01:03.607 | 2023-03-04T18:01:03.607 | 7,387,744 | 7,387,744 | null |
75,637,497 | 1 | null | null | 0 | 27 | I want to be able to put my pictures in the code like:
```
<img alt="profile" src="assets/profile-image.png"/>
```
But it's not working
I am however able to import my picture like:
```
<img src={pic} alt="profile"/>
```
Any thoughts to why the other way isn't working?
It just shows a broken link
Thanks
| I'm working with Reactjs and Tailwind CSS and having an issue with my pictures | CC BY-SA 4.0 | null | 2023-03-04T17:47:35.460 | 2023-03-04T18:02:36.110 | 2023-03-04T17:57:24.197 | 21,323,070 | 21,323,070 | [
"reactjs",
"tailwind-css"
] |
75,637,496 | 2 | null | 75,622,107 | 0 | null | After successful import:
```
import pandas as pd
df = pd.DataFrame(
{
"Exam date": ['"01/15/2019"', '"01/15/2020"', '"01/15/2021"'],
'"Last name"': ['"JOHN"', '"JANE"', '"BABY"'],
'"First name"': ['"DOE"', '"ROE"', '"DOE"'],
'"DOB"': ['"01/15/2000"', '"01/15/2010"', '"01/15/2020"'],... | null | CC BY-SA 4.0 | null | 2023-03-04T17:47:11.307 | 2023-03-04T17:47:11.307 | null | null | 11,246,056 | null |
75,637,498 | 2 | null | 75,637,365 | 2 | null | The problem is with syntax. The issue is with the comma (,) after each field definition that you used. Commas are used to separate items in a list, so in this case, they are causing each field to be treated as a single-item tuple, which is not what you want.
Here is the model class code you can use:
```
class Post(mode... | null | CC BY-SA 4.0 | null | 2023-03-04T17:47:43.100 | 2023-03-04T17:47:43.100 | null | null | 3,443,037 | null |
75,637,493 | 1 | null | null | 0 | 11 | I'm getting this whenever I send a POST request to the URL API I'm using. Here's the error I always got is,
```
Failed to load resource: the server responded with a status of 415 ()
```
Here is the code I used:
```
var firstName = "John";
var lastName = "Doe"
var company = "Doeroe Consulting Group, Asia"
var profileUR... | JavaScript FETCH: Failed to load resource: the server responded with a status of 415 () | CC BY-SA 4.0 | null | 2023-03-04T17:46:40.733 | 2023-03-04T17:46:40.733 | null | null | 11,731,899 | [
"javascript",
"axios",
"fetch-api"
] |
75,637,502 | 2 | null | 75,637,451 | 1 | null | You can create computed property:
```
new Vue({
el: "#app",
data() {
return {
path: `https://example.com/`,
selImage: '',
imageData: '',
}
},
computed: {
getImg() {
if(!this.selImage && !this.imageData) return 'https://picsum.photos/200'
return this.selImage ? this.path... | null | CC BY-SA 4.0 | null | 2023-03-04T17:48:19.270 | 2023-03-04T20:40:47.997 | 2023-03-04T20:40:47.997 | 11,989,189 | 11,989,189 | null |
75,637,505 | 2 | null | 75,637,365 | 1 | null | You can simply use `{{form.as_p}}` if you want to display all fields. Currently, you are manually displaying two fields.
Also remove extra commas in models so:
```
class Post(models.Model):
full_name = models.CharField(max_length=60, verbose_name='Full name')
name_scheme = models.CharField(max_length=40, verbos... | null | CC BY-SA 4.0 | null | 2023-03-04T17:48:56.013 | 2023-03-04T17:54:31.090 | 2023-03-04T17:54:31.090 | 17,562,044 | 17,562,044 | null |
75,637,501 | 1 | null | null | 0 | 7 | I am attempting to build some automation that will automate the processing of a workbook; Excel cannot handle the datasets with the amount of required calc fields. I am at the stage of development where some of the required data is being copied over to the new spreadsheet. When the first two columns copy over (columns ... | Python - Trying to copy columns of data from one spreadsheet to another. After the third block of copy code, it wipes all previously copied data | CC BY-SA 4.0 | null | 2023-03-04T17:48:18.660 | 2023-03-04T17:48:18.660 | null | null | 17,741,556 | [
"python",
"forms",
"automation"
] |
75,637,506 | 1 | null | null | 0 | 14 | I'm intrigued in the low-level programming of Python's source code, and I'm asking how Python actually reads or opens a file. I've been searching through a lot of Python's source code but I can't seem to find the functions/classes that handle the actual byte-by-byte exchange of information between a file and Python. So... | How does Python read a file, i.e., a .txt file through the use of the open() function? | CC BY-SA 4.0 | null | 2023-03-04T17:49:11.633 | 2023-03-04T17:49:11.633 | null | null | 21,196,020 | [
"python-3.x",
"file",
"file-read"
] |
75,637,509 | 2 | null | 75,637,309 | -1 | null | ```
body {
font-family: "Roboto", sans-serif;
position: relative;
background-image: url("/images/bakcground_home.jpg");
background-size: cover;
background-repeat: no-repeat;
}
```
| null | CC BY-SA 4.0 | null | 2023-03-04T17:49:24.290 | 2023-03-04T17:52:11.997 | 2023-03-04T17:52:11.997 | 9,938,317 | 12,744,067 | null |
75,637,500 | 2 | null | 75,636,154 | 0 | null | This is not an answer about using `.extend()`.
Your specification says find all substrings, but only uses a test for a single character. The following code will handle longer substrings, and do it with a single pass using regular expressions. This is a significant performance speed up as the number of substrings increa... | null | CC BY-SA 4.0 | null | 2023-03-04T17:48:01.653 | 2023-03-04T18:03:22.637 | 2023-03-04T18:03:22.637 | 12,379,462 | 12,379,462 | null |
75,637,512 | 1 | null | null | 0 | 6 | I have a systwm window and I need to display it's content into a wpf window. How can I do this?
I tried:
1. window.Owner = wpfWindow
2. wpfWindow.Content = window.Content
And none of this are working.
I am expecting that the content of the system window will be displayed in the wpf window.
| Display the System.Window content into a wpf window | CC BY-SA 4.0 | null | 2023-03-04T17:49:41.627 | 2023-03-04T17:49:41.627 | null | null | 21,287,219 | [
"wpf"
] |
75,637,507 | 1 | null | null | 0 | 20 | I need to get a list of the stores that the company has, and I need to output the number of products in each of those stores. The list of stores and items are different tables and I need to merge all of this to output a common answer.
To have all the columns from the stores table and the itemscount column from the item... | Need to compose a MySQL query and several SELECT and nested queries | CC BY-SA 4.0 | null | 2023-03-04T17:49:20.333 | 2023-03-04T18:20:22.387 | 2023-03-04T18:20:22.387 | 4,361,999 | 20,208,822 | [
"mysql",
"select",
"count",
"union",
"nested-select"
] |
75,637,508 | 2 | null | 75,637,365 | 1 | null | Your model fields seems to have a `,` in the end. Since they are individual fields, they should be Python statements like this:
```
class Post(models.Model):
full_name = models.CharField(max_length=60, verbose_name='Full name')
name_scheme = models.CharField(max_length=40, verbose_name='Name of scheme')
job... | null | CC BY-SA 4.0 | null | 2023-03-04T17:49:22.153 | 2023-03-04T17:49:22.153 | null | null | 3,535,547 | null |
75,637,510 | 1 | null | null | 2 | 50 | I'm trying to compile the following code:
```
#include <map>
#include <condition_variable>
class MyClass
{
public:
MyClass(): m_cv() {}
std::condition_variable m_cv; //just to illustrate that a copy constructor is not obvious to write
};
int main()
{
std::map<std::string,MyClass> testmap;
testmap.empl... | Cannot use std::map::emplace to insert an object of a class with no copy constructor | CC BY-SA 4.0 | null | 2023-03-04T17:49:24.437 | 2023-03-04T18:53:04.133 | 2023-03-04T17:50:46.077 | 2,752,075 | 3,494,271 | [
"c++",
"c++14",
"copy-constructor",
"stdmap"
] |
75,637,511 | 1 | 75,637,569 | null | 1 | 28 | This is my project files structure:
[](https://i.stack.imgur.com/Jubqj.png)
and this is my `main.py` script:
```
if __name__ == '__main__':
leukemia_dir = "../dataset/leukemia" # if I click here, I get redirected to the folder
file_names = os.listdir(leukemia_dir) # << won't work
```
Unfortunately, `os.listd... | os.listdir returns the error: no such file or directory even though the directory actually exists | CC BY-SA 4.0 | null | 2023-03-04T17:49:34.290 | 2023-03-04T18:28:41.350 | 2023-03-04T18:28:41.350 | 4,621,513 | 17,082,611 | [
"python",
"directory",
"pycharm"
] |
75,637,517 | 1 | null | null | -1 | 13 | The project has a sliding panel with information, and you can call it from any page. This panel's URL needs to be appended to a valid URL. And when updating (or opening a link by another person), I got to the same page with the exit panel already open.
I was able to implement only a specific option, when a certain pane... | How to implement a sliding panel with react router dom? | CC BY-SA 4.0 | null | 2023-03-04T17:50:06.257 | 2023-03-04T21:02:50.893 | 2023-03-04T21:02:50.893 | 8,690,857 | 20,379,917 | [
"javascript",
"reactjs",
"react-router",
"frontend"
] |
75,637,515 | 1 | null | null | 0 | 14 | Take for example this dataframe:
```
a b c
0 1 2 3
1 1 2 3
2 2 1 1
3 2 0 0
```
I have the averages of column c for a given label 'a', as follows:
```
average_c = df.groupby(['a'])['c'].mean()
```
I want to add a new column 'd' which takes the difference between the value in column c and the average for the label ... | Adding a new column with values derived from a groupby | CC BY-SA 4.0 | null | 2023-03-04T17:50:00.140 | 2023-03-04T18:00:32.947 | 2023-03-04T18:00:32.947 | 4,518,341 | 21,332,708 | [
"python",
"pandas",
"dataframe"
] |
75,637,519 | 1 | null | null | 0 | 15 | I am working with some raw camera data (BayerRG8 or BayerRG12) that is coming straight from a camera (Allied vision). I can access it as a numpy array of shape (1216,1936,1) at a bitdepth of <class 'numpy.uint8'> or <class 'numpy.uint16'>. To get useful images out of this, I use the cv2 function: `cv2.cvtColor(frame, c... | Writing RAW BayerRB12 to disk (python) | CC BY-SA 4.0 | null | 2023-03-04T17:50:15.130 | 2023-03-04T17:50:15.130 | null | null | 4,302,127 | [
"python",
"image",
"opencv",
"camera",
"raw"
] |
75,637,494 | 1 | null | null | 0 | 10 | By the way, I don't think hikari has such logic, but how does the TCP socket in the 'CLOSE_WAIT' state close normally?
This is the test environment.
1. I created a very simple API server using Springboot version 2.6.9.
2. I used Oracle DB and ojdbc8
The setting values for hikaricp are as follows.
```
HikariPool-1 -... | Does Hikaricp automatically call close() by detecting the DB connection socket in the 'CLOSE_WAIT' state? | CC BY-SA 4.0 | null | 2023-03-04T17:46:46.677 | 2023-03-04T17:57:27.310 | 2023-03-04T17:57:27.310 | 14,919,654 | 14,919,654 | [
"sockets",
"tcp",
"hikaricp",
"handshake",
"dbconnection"
] |
75,637,504 | 2 | null | 75,636,760 | 0 | null | I assume your table have same number of datetime between min and max value, then take a look at this:
```
import pandas as pd
data = {
"MinValue(Column A)": [226.8, 218.45, 205.55, 206.3, 203.2, 207.75],
"MinValueDate": ["14-12-2022", "03-01-2023", "16-02-2023", "26-12-2022", "20-01-2023", "14-02-2023"],
"... | null | CC BY-SA 4.0 | null | 2023-03-04T17:48:54.643 | 2023-03-04T17:48:54.643 | null | null | 12,715,723 | null |
75,637,520 | 1 | null | null | 0 | 15 | I am trying to connect a Google App Script to a SQL Express SQL Server on my local PC. I believe I have the port 1433 opened on my firewall (for what that is worth) and have my SQL Server enabled, TCP/IP enabled, etc... My google App Script code is:
```
var conn = Jdbc.getConnection("jdbc:sqlserver://127.0.0.1:1433;dat... | Google App Script: Unexpected error while getting the method or property getConnection on object Jdbc | CC BY-SA 4.0 | null | 2023-03-04T17:50:20.393 | 2023-03-04T18:11:02.853 | null | null | 20,472,085 | [
"sql-server",
"google-apps-script",
"jdbc"
] |
75,637,513 | 1 | null | null | 0 | 24 | Ineed to help
I have a spring boot project with h2 database. I added data in the data.sql but the data wasn't inserted into the database however tables are created successfully when I call the findAll API I get an empty data.
this is app.properties
```
server.port=8080
spring.h2.console.enabled=true
spring.h2.console.p... | Spring boot Rest API give empty data in browser | CC BY-SA 4.0 | null | 2023-03-04T17:49:44.320 | 2023-03-04T17:54:49.267 | null | null | 19,346,828 | [
"java",
"spring",
"spring-boot",
"hibernate"
] |
75,637,516 | 2 | null | 75,596,238 | 1 | null | ```
=LET(data, A2:A22,
s, MAP( data,
LAMBDA( d,
IFERROR(
IF( OFFSET(d,-1,)+1<>d,
d,
""),
d))),
e, MAP( data,
LAMBDA( d,
... | null | CC BY-SA 4.0 | null | 2023-03-04T17:50:02.300 | 2023-03-04T17:50:02.300 | null | null | 12,634,230 | null |
75,637,522 | 2 | null | 75,632,208 | 0 | null | Maybe something like this:
```
function onEdit(e) {
const sh = e.range.getSheet();
if (e.range.columnStart == 1 && e.range.rowStart > 1 && sh.getName() == 'Your feed') {
sh.getRange('F2:K75').clear()
}
}
```
| null | CC BY-SA 4.0 | null | 2023-03-04T17:50:27.327 | 2023-03-04T17:50:27.327 | null | null | 7,215,091 | null |
75,637,521 | 2 | null | 75,637,445 | 0 | null | Add `schoolday_DATE` to 1st query and then join them on `DATE` datatype values:
```
with
school_days AS
(SELECT to_char(trunc(sysdate ,'D') + LEVEL - sw.LEV_1, 'dy') as school_day,
trunc(sysdate ,'D') + LEVEL - sw.LEV_1 as school_date
FROM SCHOOL_WEEKS sw
CONNECT BY LEVEL <= sw.LEV... | null | CC BY-SA 4.0 | null | 2023-03-04T17:50:21.620 | 2023-03-04T17:50:21.620 | null | null | 9,097,906 | null |
75,637,518 | 1 | 75,637,563 | null | -4 | 39 | I have an array of objects, which have to be sorted by their fields. Sorting algorithm must be written manually. I've chosen merge sort, but can't understand, how to compare by different fields. Made classes with Comparator implementation, but don't understand, how to select which one has to be called.
Object class:
``... | java array sort() manual realization | CC BY-SA 4.0 | null | 2023-03-04T17:50:10.833 | 2023-03-04T17:57:38.520 | null | null | 19,903,849 | [
"java",
"algorithm",
"sorting",
"mergesort"
] |
75,637,523 | 1 | null | null | 0 | 11 | I'm working on a chat app with a friends list feature and I need to know how to reduce the number of read calls to the database. The logged in user has a document with the name of their uid and contains their username (which can be changed), and their friends in a different subcollection with two documents (one for req... | Firebase Read Reduction | CC BY-SA 4.0 | null | 2023-03-04T17:50:41.090 | 2023-03-04T20:06:47.817 | 2023-03-04T20:06:47.817 | 807,126 | 13,357,386 | [
"firebase",
"google-cloud-platform",
"google-cloud-firestore"
] |
75,637,527 | 1 | null | null | 0 | 8 | , please help with this issue. I'm trying to output the added dynamic zones from stpapi to next, but I can't find how to correctly form a request in postman so that I can register it in next
[add dynamic zones](https://i.stack.imgur.com/gSBUC.png)
generated a request in postman
[/?populate=*](https://i.stack.imgur.com/... | get json for dynamic zone strapi | CC BY-SA 4.0 | null | 2023-03-04T17:51:54.280 | 2023-03-05T04:16:43.970 | null | null | 21,332,776 | [
"strapi",
"next"
] |
75,637,526 | 2 | null | 75,636,589 | 0 | null | Long story short, because that's how it is set up in the package.
```
class QueryDataTable extends DataTableAbstract
{
...
/**
* Prepare query by executing count, filter, order and paginate.
*
* @return $this
*/
protected function prepareQuery(): static
{
if (! $this->prepare... | null | CC BY-SA 4.0 | null | 2023-03-04T17:51:39.560 | 2023-03-04T17:51:39.560 | null | null | 4,339,402 | null |
75,637,514 | 1 | null | null | 0 | 32 | Here’s a bizarre one. I have been using for years a macro-enabled document that basically “cleans-up” my notes using the MS Word Search & Replace and wildcards.
Yesterday, the behavior changed drastically and it no longer works as expected. Still evaluating all of the issues, but the following search immediately caus... | MS-Word Wildcard Search/Replace in VBA/Macro-Enabled Doc Change in Behavior (@ wildcard not working) | CC BY-SA 4.0 | null | 2023-03-04T17:49:48.660 | 2023-03-04T19:53:42.053 | 2023-03-04T19:53:42.053 | 8,422,953 | 15,891,099 | [
"regex",
"vba",
"ms-word",
"wildcard"
] |
75,637,525 | 1 | null | null | 0 | 23 | How we can parse Headers with sections of the parameters (see rfc2231([https://datatracker.ietf.org/doc/html/rfc2231](https://datatracker.ietf.org/doc/html/rfc2231))). For example:
```
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;
name*0*=US-ASCII''%D0%97%D0%B0%D0%BF%D1%80%D0%BE%D1%8... | C# parse headers with sections of the parameters | CC BY-SA 4.0 | null | 2023-03-04T17:51:23.390 | 2023-03-04T17:52:16.513 | 2023-03-04T17:52:16.513 | 11,590,656 | 11,590,656 | [
"c#",
".net",
"encoding",
"http-headers",
"mime"
] |
75,637,535 | 1 | null | null | 0 | 7 | How to save all messages using mutt ? I want to do a backup copy of my inbox from a imap server to a folder on my pc in maildir style not mbox.I selected all the messages pressing T button and then .* , the messages get a * , but when I press s for saving and selected the path it saves only one message.
| how to save all messages in mutt | CC BY-SA 4.0 | null | 2023-03-04T17:53:38.833 | 2023-03-04T18:55:13.133 | null | null | 21,332,804 | [
"mutt"
] |
75,637,532 | 2 | null | 47,729,039 | 0 | null | You can disable CSRF and use an API token instead for authentication.
1. Go to /manage/script and run
> hudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION=true
1. Generate an API token by
> Manage Jenkins > Manage Users > Add new token
1. Bitbucket webhook URL should look like this
> h... | null | CC BY-SA 4.0 | null | 2023-03-04T17:53:16.827 | 2023-03-04T17:58:18.097 | 2023-03-04T17:58:18.097 | 539,023 | 539,023 | null |
75,637,533 | 1 | null | null | 0 | 9 | I am using the `node:net` Socket API in a library I'm writing. I want to unit test this code, so I would like to abstract over Socket by allowing this unit to accept any Duplex stream.
For testing purposes, I would like to have a method of creating streams which allows me to mock/spy on both the 'local' and 'remote' si... | Is it possible to connect two Duplex streams in Node? | CC BY-SA 4.0 | null | 2023-03-04T17:53:35.817 | 2023-03-04T18:29:55.900 | null | null | 14,133,230 | [
"javascript",
"node.js",
"testing",
"jestjs",
"stream"
] |
75,637,534 | 1 | null | null | -1 | 8 | I am writing a script to push data from Snowflake to OracleDB using pandas and sql alchemy. The scenario is, I am having duplicate primary keys in my source and I am expecting an error when I try to insert in the target.
```
try:
df.to_sql('table', engine, index=False, if_exists='append')
except Exception as e:
... | Insert dynamically into a table in OracleDB | CC BY-SA 4.0 | null | 2023-03-04T17:53:37.457 | 2023-03-04T17:53:37.457 | null | null | 19,349,258 | [
"python",
"pandas",
"sqlalchemy"
] |
75,637,531 | 2 | null | 75,601,444 | 0 | null | Based on your description, it seems like you are trying to extract different fields from a log file where the destination address could be an IPv4 address or a subnet, and the destination options could be a string with multiple options separated by commas. Here's a regex that you can use to extract all the required fie... | null | CC BY-SA 4.0 | null | 2023-03-04T17:53:06.510 | 2023-03-04T17:53:06.510 | null | null | 1,012,111 | null |
75,637,537 | 2 | null | 75,288,050 | 0 | null | It could happen if the app is being published in Fabric. It could also happen when Kony Public key pinning is set to true but you didn't include a public_keys.json file in Native/Resources with all the public keys of the domains you're trying to access.
| null | CC BY-SA 4.0 | null | 2023-03-04T17:53:55.027 | 2023-03-04T17:53:55.027 | null | null | 3,379,976 | null |
75,637,538 | 2 | null | 75,637,280 | 0 | null | ```
def remove_minimum(values):
values.remove(max(values, key=lambda x: -x))
return values
```
:-D
| null | CC BY-SA 4.0 | null | 2023-03-04T17:54:03.450 | 2023-03-04T17:54:03.450 | null | null | 12,671,057 | null |
75,637,524 | 2 | null | 75,632,549 | 0 | null | So, yeah, ansible isn't great at dealing with xml, and that parsexml module you found is really designed for use by ansible net module authors which explains why it is so terrible to use
This is my approach:
```
tasks:
- vars:
sitemap:
content: |
<?xml version="1.0" encoding="UTF-8"?>
... | null | CC BY-SA 4.0 | null | 2023-03-04T17:51:16.573 | 2023-03-04T17:51:16.573 | null | null | 225,016 | null |
75,637,536 | 1 | null | null | -4 | 18 | Can anyone give me a direction?
I have an HTML and php code where the input is created within a while php and shown on the screen through a table, I need to take the value of an input and multiply it with the value that the user types in the input on the side, until then, blz I can do it with JS, but as it is inside a ... | Campos inputs para multiplicar | CC BY-SA 4.0 | null | 2023-03-04T17:53:42.197 | 2023-03-04T18:39:32.760 | 2023-03-04T18:39:32.760 | 21,332,797 | 21,332,797 | [
"javascript",
"php",
"html",
"forms",
"input"
] |
75,637,528 | 1 | null | null | 3 | 67 | I was tasked with implementing an optimised matrix multiplication micro-kernel that computes `C = A*B` in C++ starting from the following snippet of code. I am getting some counter intuitive behaviour and I would like some help to better understand what is going on.
```
void mat_mul(double* A, double* B, double* C) {
... | L1 Cache Usage in Optimised matrix multiplication micro-kernel in C++ | CC BY-SA 4.0 | null | 2023-03-04T17:52:19.253 | 2023-03-05T01:49:20.413 | 2023-03-05T01:49:20.413 | 224,132 | 11,248,867 | [
"c++",
"optimization",
"matrix-multiplication",
"avx",
"cpu-cache"
] |
75,637,541 | 1 | null | null | 0 | 10 | I have been to trying to import a csv file in Mongo DB server using 'mongoimport' cmd. The error was "invalid character '_' looking for beginning of value ".
When I opened the csv file, invalid character '_' was at the beginning of the file, and when I tried to removed that and try to run the command again its showing... | Failed: error processing document #1: invalid character '_' looking for beginning of value | CC BY-SA 4.0 | null | 2023-03-04T17:54:10.863 | 2023-03-04T17:54:10.863 | null | null | 17,716,784 | [
"mongodb",
"powershell",
"csv",
"mongoimport"
] |
75,637,542 | 2 | null | 75,637,383 | 0 | null | A trick using only base R is to add the `difftime` on to the first of January in the year 0 AD (this exists in R even if it didn't technically exist in reality).
The resulting date is the number of years, months and days of the difftime (with an extra day, which is easy to subtract)
```
(as.POSIXct('0000-01-01') + (as.... | null | CC BY-SA 4.0 | null | 2023-03-04T17:54:19.727 | 2023-03-04T18:15:43.140 | 2023-03-04T18:15:43.140 | 12,500,315 | 12,500,315 | null |
75,637,539 | 1 | null | null | 0 | 5 | I'm curious as to why this inheritance model succeeds between a base and child, but fails between a child and grandchild. I'm sure there is something I've missed here. The error would make sense to me, if only it between base and child.
```
type BaseType = {
base: true,
...
}
type fnType<O: BaseType> = (optio... | Flow type grandchild inheritance issues | CC BY-SA 4.0 | null | 2023-03-04T17:54:06.757 | 2023-03-04T17:54:06.757 | null | null | 784,855 | [
"flowtype"
] |
75,637,543 | 1 | 75,637,797 | null | 0 | 17 | I was writing my PySimpleGUI program and it (Still) does not load
This is the error it gives me:
```
Traceback (most recent call last):
File "D:\Python\Lavoro.py", line 89, in <module>
event = window.read()
^^^^^^^^^^^^^
File "D:\Python\venv\Lib\site-packages\PySimpleGUI\PySimpleGUI.py", line 10075,... | How to fix TypeError: cannot unpack non-iterable Button object | CC BY-SA 4.0 | null | 2023-03-04T17:54:20.737 | 2023-03-04T18:46:39.400 | 2023-03-04T18:46:39.400 | 20,833,560 | 20,833,560 | [
"python",
"pycharm",
"windows-10",
"pysimplegui"
] |
75,637,545 | 1 | null | null | 0 | 37 | Below is some code for a simple Firebase Cloud Function that hits the ChatGPT API. Deploying this code and accessing it from my app results in a CORS error.
```
import * as functions from "firebase-functions";
import {defineString} from "firebase-functions/v2/params";
import {Configuration, OpenAIApi} from "openai";
c... | Accessing ChatGPT API through Firebase Cloud Function | CC BY-SA 4.0 | null | 2023-03-04T17:54:28.073 | 2023-03-04T20:30:03.187 | 2023-03-04T20:30:03.187 | 2,366,158 | 2,366,158 | [
"javascript",
"firebase",
"google-cloud-functions",
"cors",
"openai-api"
] |
75,637,540 | 1 | null | null | 0 | 9 | When binding a value to a Label.Text it works fine but doing the same with Entry.Text I see the initial value but this never updates when the value changes. Here is xaml for Label:
```
<Label x:Name="multiplierLabel" VerticalOptions="Center"
FontSize="22"
HorizontalTextAlignment="Center"
... | Binding to Entry element does not update entry text more than once - Maui | CC BY-SA 4.0 | null | 2023-03-04T17:54:07.383 | 2023-03-04T17:54:07.383 | null | null | 3,410,340 | [
"binding",
"label",
"maui"
] |
75,637,544 | 1 | null | null | 0 | 11 | Is there a method in Python or PyCharm to produce attribute type hints for a class that dynamically loads the attributes from a file?
Consider the following `Settings` class:
```
import re
class Settings:
"""
This class loads a settings file and creates properties for each name in the file.
The values are... | Type-hinting based on custom config file structure | CC BY-SA 4.0 | null | 2023-03-04T17:54:26.527 | 2023-03-04T17:54:26.527 | null | null | 5,356,096 | [
"python",
"pycharm",
"type-hinting"
] |
75,637,529 | 1 | 75,637,769 | null | 1 | 8 | I am trying to create a Shiny App but using modules stored in different scripts. I am having trouble calling the data to be used inside a module.
I have 2 App versions - the one where everything is stored inside a single Shiny R script and this works without issue. However, when I try to split it up into parts (a serve... | Passing data to Shiny modules from "global" data | CC BY-SA 4.0 | null | 2023-03-04T17:52:46.063 | 2023-03-04T18:27:43.853 | null | null | 6,447,399 | [
"r",
"shiny",
"module"
] |
75,637,549 | 2 | null | 75,637,513 | 0 | null | To update the configuration so that the data in the data.sql file will be inserted in the H2 database on application startup, you can modify the spring.sql.init.mode property to always and set the spring.datasource.initialization-mode property to always. Also, set the spring.datasource.data property to the path of the ... | null | CC BY-SA 4.0 | null | 2023-03-04T17:54:49.267 | 2023-03-04T17:54:49.267 | null | null | 4,388,228 | null |
75,637,553 | 2 | null | 74,364,235 | 0 | null | Using time.sleep(25) would break the long polling mechanism, because the call to getupdates() is performed every 25 seconds. Instead, you have to specify the timeot=25 (not 1) property inside the api call to getupdates(). That way telegram will keep the connection open and respond immediately when there is an update, w... | null | CC BY-SA 4.0 | null | 2023-03-04T17:55:22.717 | 2023-03-04T17:55:22.717 | null | null | 21,332,503 | null |
75,637,548 | 1 | null | null | 0 | 49 | My question is a follow-up to a question that was asked and answered under another thread. However, the question not asked was how do you extract the remaining characters after the first 1000 or nearest '.' :
[https://dba.stackexchange.com/questions/121206/string-function-to-get-left-1000-but-only-to-last-period-or-car... | String Function To Get Right 1000, From the Last Period or Carriage return | CC BY-SA 4.0 | null | 2023-03-04T17:54:42.693 | 2023-03-05T00:56:34.110 | 2023-03-04T17:58:58.237 | 11,683 | 11,326,454 | [
"sql",
"sql-server",
"reportbuilder"
] |
75,637,559 | 2 | null | 75,627,821 | 0 | null | The likely reason your score is being overridden instead of being added to is that in your update method when pressing f and you are at the pump then, you are setting the score to whatever the collected fuel is. This means that whatever previous score existed there is replaced by the new value. You need to add a + next... | null | CC BY-SA 4.0 | null | 2023-03-04T17:56:55.090 | 2023-03-04T17:56:55.090 | null | null | 12,245,147 | null |
75,637,558 | 2 | null | 75,630,199 | 0 | null | Just, first, as you're new here -- so Welcome ! --, it doesn't really matter, but keep in mind to post the errors you are getting, because I had to figure them out here .
Right, just a few things first :
- `foreach(){}`- `$env:onedrive``$env`- `app`
```
$onedrive = "$env:onedrive - Company Name"
foreach ($folder in (Ge... | null | CC BY-SA 4.0 | null | 2023-03-04T17:56:54.267 | 2023-03-04T17:56:54.267 | null | null | 18,427,893 | null |
75,637,546 | 1 | null | null | -2 | 22 | I am very new to Java. Tried few years back to learn something with IntelliJ and now I a try to learn using Eclipse which confuses me.
As part of homework I have these tables
[Car list and Car condition](https://i.stack.imgur.com/bR0wp.png)
The task is to develop a single Java program that follows coding conventions an... | How do you sort ArrayLists? for a CarShop project with Eclipse | CC BY-SA 4.0 | null | 2023-03-04T17:54:38.067 | 2023-03-04T17:54:38.067 | null | null | 11,718,299 | [
"java",
"sorting",
"arraylist"
] |
75,637,561 | 1 | 75,637,636 | null | 0 | 23 | Value is not set in local storage.
```
const todo = () => {
let value = document.querySelector("#input_box").value;
let ok_btn = document.querySelector(".ok_btn");
function main(){
return localStorage.setItem("0", value);
}
ok_btn.addEventListener("click", main);
}
todo();
```
I make a ... | Local Storage value | CC BY-SA 4.0 | null | 2023-03-04T17:57:14.350 | 2023-03-04T18:09:24.230 | 2023-03-04T18:06:05.877 | 3,443,037 | 20,889,092 | [
"javascript",
"ecmascript-6",
"local-storage"
] |
75,637,555 | 1 | null | null | 0 | 8 | This is how I fine tuned the model:
```
input_ids=tokenizer(str(parseddata), padding=True, truncation=True, max_length=500,
return_tensors="pt")
labels = torch.tensor([0])
lr_scheduler = get_scheduler(
name="linear", optimizer=optimizer, num_warmup_steps=0, num_training_steps=2
)
# del ba... | After fine tuning model with model.train it gives different predictions for same text | CC BY-SA 4.0 | null | 2023-03-04T17:55:45.937 | 2023-03-04T17:55:45.937 | null | null | 13,826,477 | [
"huggingface-transformers",
"huggingface",
"huggingface-datasets"
] |
75,637,564 | 1 | null | null | 0 | 21 | I would like to overlay an SVG overtop an entire webpage, cursor included. Is there any way to change the z order of a browser's cursor so that it renders underneath a semi-transparent SVG?
| Render cursor underneath SVG | CC BY-SA 4.0 | null | 2023-03-04T17:57:39.390 | 2023-03-04T20:03:36.203 | null | null | 7,943,920 | [
"html",
"css",
"svg"
] |
75,637,550 | 1 | 75,638,420 | null | 0 | 19 | I have a React component where i import svgs as `ReactComponent`, In that component i am mapping the svgs to a `key` string that will return the correct svg.
Everything works the problem I am having is a problem with Typescripts. import React, { SVGProps, FC } from "react";
```
import { ReactComponent as FacebookLogo }... | Cannot get the types right for SVG commponent | CC BY-SA 4.0 | null | 2023-03-04T17:54:51.537 | 2023-03-04T20:18:00.170 | null | null | 5,127,919 | [
"reactjs",
"typescript"
] |
75,637,560 | 1 | null | null | 0 | 30 | I have the following two classes:
```
@runtime_checkable
class AbstractFolder(Protocol):
def __iter__(self) -> "AbstractFolder":
raise NotImplementedError
def __next__(self) -> AbstractFileReadable:
raise NotImplementedError
```
and their implementation:
```
class FileSystemFolder(AbstractFold... | Is this the correct way of use Protocol, and if it's why mypy fails? | CC BY-SA 4.0 | null | 2023-03-04T17:57:11.837 | 2023-03-05T02:27:13.983 | 2023-03-05T00:45:11.713 | 108,205 | 3,672,883 | [
"python",
"mypy"
] |
75,637,565 | 2 | null | 75,636,574 | 0 | null | [https://stackoverflow.com/questions/57201412/any-way-to-add-google-maps-in-flutter-for-web][Here is a link.
might help.]
If you are using the google map broadly in the app, you must have a credit card with credits and you have to give the details of the credit card before implementing map in map. You will get a api ke... | null | CC BY-SA 4.0 | null | 2023-03-04T17:57:40.930 | 2023-03-04T17:57:40.930 | null | null | 20,292,934 | null |
75,637,554 | 2 | null | 75,532,608 | 0 | null | To give a perspective from how does the implementation look like if you use Azure IoT services... below may help with initial query!
You can connect your IoT devices to [Azure IoT Hub](https://learn.microsoft.com/en-us/azure/iot-hub/) and configure Azure IoT Hub to route data from your IoT devices to Azure services suc... | null | CC BY-SA 4.0 | null | 2023-03-04T17:55:24.923 | 2023-03-04T17:55:24.923 | null | null | 13,174,899 | null |
75,637,562 | 2 | null | 75,622,107 | 0 | null | I created `file.csv` with `',\0'` as the separator as indicated in your update and reproduced your results:
```
import pandas as pd
df = pd.read_csv('file.csv')
print(df)
```
```
Exam date Unnamed: 1 Unnamed: 2 Unnamed: 3 Unnamed: 4
0 01/15/2019 NaN NaN NaN NaN
1 01/15/2020 ... | null | CC BY-SA 4.0 | null | 2023-03-04T17:57:25.780 | 2023-03-04T18:09:36.363 | 2023-03-04T18:09:36.363 | 235,698 | 235,698 | null |
75,637,570 | 2 | null | 4,565,700 | 0 | null | Don't overcomplicate things, just use `ssh-add` to add a temporary identity
```
alias gpullpersonal='ssh-add mykey;git pull;ssh-add -D'
alias gpullprofessional='ssh-add myotherkey;git pull;ssh-add -D'
```
| null | CC BY-SA 4.0 | null | 2023-03-04T17:58:13.597 | 2023-03-04T17:58:13.597 | null | null | 4,581,363 | null |
75,637,568 | 2 | null | 75,636,595 | 2 | null | This will be much faster - read all values into arrays, and then process the arrays, instead of reading cell-by-cell.
```
Sub CompareData()
Dim ws1 As Worksheet, ws2 As Worksheet, rng1 As Range, rng2 As Range
Dim arr1, arr2, arrRes1, arrRes2, r1 As Long, r2 As Long, v1, v2
Set ws1 = ThisWorkbook.Sheets... | null | CC BY-SA 4.0 | null | 2023-03-04T17:58:02.200 | 2023-03-04T22:13:27.997 | 2023-03-04T22:13:27.997 | 478,884 | 478,884 | null |