If you don't add any more fields to your subclass is there a need to add the @dataclass decorator to it and would it do anything? If there is no difference, which is the usual convention? from dataclasses import dataclass @dataclass class AAA: x: str y: str ... # decorate? class BBB(AAA): ...
I use Expo 46. I would like to change some config in my AndroidManifest so I run an npx expo prebuild that generates an android folder without error. But then my eas build is not working anymore (it is if I don't run prebuild). I get this error: Failed to find 'build.gradle' file for project: /home/expo/workingdir/build/android/app. Am I missing something?
Upgrading the spring version from 3.x to 5.x in the project. Already the project has objectmapper from org.codehaus.jackson.map.ObjectMapper(1.9.11) and com.fasterxml.jackson.data-bind.ObjectMapper(2.11.0) both were used and in working condition with spring version(3.x). Eclipselink is the jpa implementation currently using. After upgrading the spring version to 5.x, it is showing the following error: Internal Exception: java.lang.NoClassDefFoundError: com.fasterxml.jackson.databind.ObjectMapper Is there any dependency conflict? if so how come it has worked in the spring old version? The onlin
I am working on an issue where the password and username are being shown in the log files of an application. Whenever the application does a POST call, the log of the same gets stored in the httpd logs file. But it shows the password in the plain text(see below). Is there any way I can mask the password? Below is the log which I was talking about. 10.181.214.53 - - [22/Nov/2022:16:26:13 +0530] "POST /uaa/oauth/token?grant_type=password&username=223053925&password=Gei321itc HTTP/2.0" 401 62 I tried editing the custom logs file, but was not successful. Can anyone please help me?
I have been running Jenkins for 10 years, but after I upgraded Jenkins.war ( 2.361.4 LTS by 2022-11-17) to the latest version, and also openjdk-17-jre on Ubuntu Focal 20.04 LTS. Jenkins keeps restarting and throws the following stack trace to to the log (long version omited): java.lang.AssertionError: class hudson.security.csrf.DefaultCrumbIssuer is missing its descriptor How to fix the problem? I'm starting jenkins by command: jenkins -jar jenkins.war I'd expect Jenkins to start. Jenkins gives "Please wait while Jenkins is getting ready to work ..." on the web page, but then restarts and neve
I need to hide the whole column in the rtf template when the value is equal to '0'. Then it needs to be shown when the value is greater than 0. I have tried the ff. But none of them worked. Sol#1 Column Header <if@column:COLUMNAME="0"?> Cell <if@column:../../COLUMNAME="0"?> Sol#2 Column Header <if@column:contains(COLUMNAME, '0')?>COLUMNHEADERNAME> Cell <if@cell:contains(COLUMNAME, '0')?> Sol#3 Column Header <if@column:/COLUMNAME/@type="PRIVATE"?> Cell <if@column:/COLUMNAME/@type="PRIVATE"?> Here's the sample template output. The cells highlighted in yellow should be hidden. template output
I need to hide the whole column in the rtf template when the value is equal to '0' then it needs to be shown when the value is greater than '0' I have tried the ff. But none of them worked. Sol#1 Column Header <if@column:COLUMNAME="0"?> Cell <if@column:../../COLUMNAME="0"?> Sol#2 Column Header <if@column:contains(COLUMNAME, '0')?>COLUMNHEADERNAME> Cell <if@cell:contains(COLUMNAME, '0')?> Sol#3 Column Header <if@column:/COLUMNAME/@type="PRIVATE"?> Cell <if@column:/COLUMNAME/@type="PRIVATE"?> Here' sample template output, the highlighted in yellow should be hided. enter image description here
I have been manually converting chopper api response response.body and was wondering if its possible to automatically make a way to convert whatever type of response to whatever dart model object I have. Below are ways I want to do the conversion of an endpoint's response to a Dart model I have LoginResponse @ChopperApi() abstract class ApiService extends ChopperService { // @Post(path: '/login') Future<Response<LoginResponse>> login( @Body() body, ); } static ApiService create() { final client = ChopperClient( baseUrl: Environment.apiUrl, converter: const JsonConverter(), services: [ _$ApiSer
I'm a newby to web development and I'm stuck with retrieving metadata like Composer from FLAC audiofiles. I tried to extract this information with jsmediatags.js and musicmetadata.js in Chrome with Javascript, and I could only read the title, artist, genre, picture, track and year. My question is: am I doing something wrong, or are these libraries not supporting all the fields inside the FLAC files? I'm happy for any help I can get. I tried to extract all metadata from FLAC and MP3 files
table 1: id arr 100 ["a","c","b"] 200 ["d","e","c","a"] table 2: letter id a 1 b 2 c 3 d 4 e 5 I need : id id_arr 100 [1,3,2] 200 [4,5,3,1] In Snowflake how to achieve this? I need to preserve order of strings as well. FLATTEN to split array into rows, joining to the other table and back to an array using array_agg doesn't preserve order of array elements.
I'm trying to set up a Tomcat Server on VSC (since it couldn't work on IntelliJ because I don't have the ultimate edition) but I have no experience (and neither do my colleagues) with Community Server Connector. All our documentation is written for Tomcat For Java extension, but since it's deprecated we have to use Community Server Connector. I've done all the necessary steps (like LDAP certificates, changes to server.xml etc) so it should be working...right? Once I try to start the server I get Error: Could not find or load main class Files\Apache We don't really have a clue where we could so
When working on my C# project in VScode, prettier, the extension, doesnt apply the same formatting that it uses in other languages which I prefer. It doesn't format my code which is where I want my braces to be on the same line as my function statements like below void Start() { DefaultLayer = gameObject.layer; } however my code looks like this void Start() { DefaultLayer = gameObject.layer; } and wont change by adding anything like an omnisharp.json file in the root or modifying anything? How can I make my braces format as desired?
Is there any ways to find when an account was disabled? I looked online and was only able to find way to get whenchanged to get las modified date for AD. Get-ADUser -ObjectId $id -SearchBase 'OUDISTINGUISHEDNAME' -PROPERTIES WhenChanged Is there something similar for Azure AD? Ideally, I would like to get date when the account was disabled. But if not possible last modified will be good too.
I am working on a simple multipage Streamlit app that allows CRUD operations to be performed on some data. I understand that creating a pages directory will allows me to have multiple pages in my app, which is what I have done as shown here, My project structure looks like this, /Home.py /pages/Add_Pikcups.py /pages/View_Pickups.py Now, I want to have multiple sections in my app. For instance, these are the pages that come under the 'Pickups' section and then I would also like to have a 'Drops' section as so on. Is there some way I can customize my sidebar to display the pages as these multipl
in the official documentation in Apple Developer, I have found that the: NfcAdapter.CreateNdefMessageCallback interface is no longer supported since API level 29: https://developer.android.com/reference/android/nfc/NfcAdapter.CreateNdefMessageCallback However there is no info provided how if it is still possible (and how) to send message p2p (using Android Beam) from one device to another. We are using this technology in applicaton for our client (they were synchronising some data using NFC). The clients now bough new devices with API level 30 - and the function is no longer working. Do you no
I have a go struct which I'm using for my POST of an entity type Student struct { ID string `json:"id" firestore:"id"` Name string `json:"name" validate:"required" firestore:"name"` } From the POST body request I can send body as { "id" : 123, "name" : "Student Name" } I want to implement a functionality where the request should fail while doing the validation saying "id" field in POST body is not allowed. As I'm planning to reuse the same struct for GET I'm unable to skip the "id" in json marshalling and unmarshalling. Is there any struct tag like allowed:true or false ? I tried to skip the j
I downloaded VS code and was trying to run a particular julia code. I ran into this error that says "Cannot read properties of undefined (reading 'file')". Now I have looked at a bunch of similar questions on here, but most of them pertains to remote accessing VS code (SSH) and that is not what I'm dealing with here. What have I done wrong here? I saw from a link that it probably has to do with accessing Julia itself. I included the path directory to Julia under Settings. Under settings, it says that "Could not start the Julia language server. Make sure the julia.executablePath setting points
We are using AWS Inspector to scan vulnerabilities on our AWS ECR repositories. When there is a new image on a certain repository, we would like to suppress findings from past / superseded images, keep active only findings from the latest image for each repository, so we can see only the issues that are actually not fixed yet. I can't just filter out by age, because it might happen that we don't generate a new image for some time, for certain repositories. I'm trying to create suppression rules on AWS Inspector, but I can't find the proper filter to achieve the desired effect. If I try to supp
When I download the protobuf-javalite-3.17.3 pom: https://repo1.maven.org/maven2/com/google/protobuf/protobuf-javalite/3.17.3/protobuf-javalite-3.17.3.pom I can see inside <packaging>bundle</packaging> What packaging : bundle mean exactly? on https://repo1.maven.org/maven2/com/google/protobuf/protobuf-javalite/3.17.3/ I can see that their is a protobuf-javalite-3.17.3.jar but no protobuf-javalite-3.17.3.bundle, so do I need to download instead the protobuf-javalite-3.17.3.jar ?
I can't find how to change the cursor colour of an entry field on MAUI for Android. I'm writing an app supporting dark theme and I don't want the entry box to have a light background. Unfortunately, the default cursor colour is dark purple, which has insufficient contrast and makes it very hard to see. I'd be happy if it were the same colour as the text or if I could set it independently. Any suggestions?
I am conducting PCA on a dataset. I am attempting to add a line in my three-dimensional graph which shows the first principal component. I have tried a few methods, but I have not been able to display the first principal component as a line in my three-dimensional graph. My code is as follows: import numpy as np np.set_printoptions (suppress=True, precision=5, linewidth=150) import pandas as pd from sklearn.decomposition import PCA from sklearn.preprocessing import LabelEncoder from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt file_name = 'C:/Users/data' input_data = pd.r
Update: I have found a better website for getting the data. If you press my link, you can see in the top of the screen there are multiple future games. I would like to get details about the games that BC Copenhagen plays. The details should be live stats (points, players' points...). Is this possible? Website: https://basketligaen.dk/ I have a pretty difficult question. I want to fetch live data from a basketball game website. However, this is very tricky, because first of all: The live games change all the time, and I'm only interested when one team is playing: "BC Copenhagen". (However, if I
I want to connect US Securities and Exchange Commission (SEC) API to a Google Sheet. I want to be able to upload files in JSON from the SEC server to Google Sheets directly. But I could not make any of ImportJSON functions work; it gives me a 403 error. I know that the issue has something to do with credentials/headers, as it was discussed here: How to get data from SEC Edgar python and a json But I don't know how to implement that in Google Sheet. Here is the page for the SEC API just in case: https://www.sec.gov/edgar/sec-api-documentation
search from url if a normal search can be done like this www.google.com/search?q=search_here how do i search here !? search from url with picture url in google lens enable search with image url, from the url in the same place that appears in the image help me pls... TnT
I'm trying to fetch more than 1 million records in the microservices. I'm getting an error. I need to keep increasing the app memory for the service in order to fetch a huge amount of data. Is there any method I can use to fetch huge data instead of increasing the app memory. 2022-10-11T11:22:04.898+08:00 [APP/PROC/WEB/0] [ERR] Resource exhaustion event: the JVM was unable to allocate memory from the heap. 2022-10-11T11:22:04.898+08:00 [APP/PROC/WEB/0] [ERR] ResourceExhausted! (1/0) @Value("${batch-size}") private int batchSize; public void archiveTableRecords(JdbcTemplate sourceDbTemplate, Jd
I'm having a larger foreach loop code but need to get below code executed without casesensitive. Below code snippet returns false, how can I ignore the casesensitive .contains() and the condition as true? $a='aa0855' $b='AA0855 Sample' $b.Contains($a) Expected value is true. Above code is tried with 2 variables and it returns false.
I am new to .Net Maui. I have a lot of experience with Xamarin. I am using Rider for MacOS. I am attempting to build a .Net MAUI Application for iOS and Android. I've successfully created a .Net Maui template (from Rider). Since Android is easier to build and deploy, I want to start there. However, when I created a new MAUI template and clicked "Run" in my IDE, I got a bunch of iOS and MacOS specific errors. Through much weeping and gnashing of teeth, I discovered that this was because my project's TargetFrameworks were set in the MyApp.csproj file like so: <TargetFrameworks>net6.0-android;net
I would like to ask if it is possible to use MODIFY to update a few specific fields of database table. I have made the below program just for this problem. I found out that by using work area and looping throw internal table it is possible, but there has to be 2 MODIFY statements. I would appreciate every answer. Thansk guys. REPORT ZTEST_MODIFY. tables: zdegust. data: it_zdegust type table of zdegust, lv_zkat like zdegust-zkat, lv_zvzor like zdegust-zvzor. select * from zdegust into table it_zdegust. lv_zvzor = 'test case'. lv_zkat = '1'. modify zdegust from it_zdegust TRANSPORTING zkat zvzor
I have a report with a multi-value parameter (Name: @ParaID) that is blank by default and has no available values. The user can enter one or more values to filter the returned data. That works fine with the query set up like: Select * from table1 where table1.ID in (@ParaID) Now I wanted to set up the query to allow the user to decide if he wants to enter a value (or more) or not. If he leaves the parameter empty the report should return all records. But I cannot figure out how to do that. I also tried to use a default value (here: %). But I will not get any records returned or the report does