All Questions

4 votes
0 answers
41 views

How to unfold variable only once in vscode debugger

I am debugging the go code in vscode. The binary tree struct is shown in the left panel as: The problem is you have to expand two times to get the fields of the variable. First: Then: In Goland, ...
0 votes
0 answers
17 views

Entity Framework: one-to-many, composite foreign keys

I am porting Linq-to-SQL DataContexts to Entity Framework code-first. The relationships are setup correctly in the Linq-to-SQL designer, but I am not copying the code over and need to recreate the ...
10 votes
2 answers
10k views

How to change primary color on primevue?

I use Primevue on a vue.js project, with the theme Deep Purple that I import this way: import 'primevue/resources/themes/mdc-light-deeppurple/theme.css'; Now I'd just like to modify the primary color ...
0 votes
3 answers
39 views

TypeError: Cannot read properties of undefined (reading 'map') in react-js

import React, { useEffect, useState } from 'react'; import axios from "axios"; import './List.css'; import { toast } from "react-toastify"; const List = () => { const url = &...
0 votes
0 answers
3 views

tensorflow tfreocrd dataset load slow,how can I sovle this bottleneck,changing params like num_parallel_calls seems no use

I have tried to change almost all the params tf.Dataset offered,but all my effort seems no useful.Loading data is my bottleneck. Here show my code and other details. def feture_name(column, ...
59 votes
2 answers
71k views

What is the purpose of the `go mod vendor` command?

The documentation says, The go mod vendor command constructs a directory named vendor in the main module's root directory that contains copies of all packages needed to support builds and tests of ...
0 votes
0 answers
14 views

How do i convert a big tkinter window to a picture?

I am creating a dashboard, and i want to copy the window i created onto a powerpoint presentation. My problem with using Pillow or other modules is that they take only what's on the screen, however my ...
0 votes
0 answers
14 views

Calling outer program which accesses I2C device with system( ) in Linux, does not work

first at all, I list the environment below. Hardware: Raspberry Pi Zero 2w OS: Raspberry Pi OS (Legacy) Lite USED Interface: UART, I2C The scenario is that I wrote a UART server in C to receive ...
0 votes
2 answers
24 views

Unable to create file in specified directory because of security scope resource errors in iOS app

Goal: A user selects a folder in Files app where they would create files in that folder. This is an iOS app. This folder path is saved in the iOS app, using this app user would create file ...
0 votes
0 answers
4 views

API Platform custom Controller serialization problem

I have a very simple custom API endpoint with an input and output DTO and a Symfony Controller, build like the examples in the documentation page: https://api-platform.com/docs/v2.3/core/dto/ #[...
1 vote
1 answer
2k views

Spotless + Eclipse Formatter + Java 17 = Error on String Literals + Removing Unused Imports

I am upgrading my Spring Boot app to use Spring 3+ and Java 17. However, I'm now getting an error when trying to apply spotless and to do with removeUnusedImports feature. This issue is similar to ...
0 votes
1 answer
9 views

How to add a time column that increments based on id column value in pandas?

I've an api endpoint that provides json data which when converted into a DataFrame looks something like this- index id name value time 1 101 A 12 00:12:00 2 101 ...
0 votes
0 answers
5 views

SAP B1: UDO form can still be edited after Close

I have registered a UDO with a SAP B1 form with both Closed and Cancel services. I close one form and the "Status" fields reads 'C' for that particular DocEntry. When I open that form again, ...
-1 votes
3 answers
161 views

What is the purpose of Declaring Variables in VBA if it can be done without declaring one?

I have a simple code from a book on VBA that displays a MsgBox with greetings. The code is below: Sub GreetMe5() Dim Msg As String If Time < 0.5 Then Msg = “Morning” If Time >= 0.5 And Time < ...
0 votes
3 answers
84 views

How to update a form-related (data-)model with every form-data change?

I have the following function, in order to update values from four different input fields: UPDATED My Package Class is defined as followed: class Package { constructor(packageID, type, weight, ...

15 30 50 per page
1
2 3 4 5
1613147