instruction
stringlengths
0
30k
|.net|docker|docker-compose|open-telemetry|open-telemetry-collector|
null
I'm running several applications on GKE with a Spring Cloud Gateway in front of them and behind a Google Cloud Loadbalancer. While debuging i noticed that most traces reported to Google Cloud Trace show a missing root trace. It appears the Gateway (correctly) reads the `X-Cloud-Trace-Context` header and reports it o...
No Traces reported by GCP Load Balancer to Google Cloud Trace
|spring-cloud-sleuth|gcp-load-balancer|google-cloud-trace|
You are assuming that submitting a parallel stream operation as a job to another executor service will make the Stream implementation use that executor service. This is not the case. There is an undocumented trick to make a parallel stream operation use a different Fork/Join pool by initiating it from a worker threa...
## Background * Gradle project that uses maven-publish and the jfrog artifactory plugins. * Upgrading from Gradle 5.6.4 to Gradle 6.9.4 (reproducible when upgrading to 6.0). ## Problem Running the build e.g. ``` ./gradlew clean build ``` fails before any tasks are run, because of: ``` [ERROR] [org.gradle....
|c|operating-system|kill-process|
The [answer by Mark](https://stackoverflow.com/a/65818022/2745495) is how to disable the colorings completely. But if you instead wanted to customize the colors, you can adjust various properties (documented [here][1]) in your `workbench.colorCustomizations` setting: - `list.errorForeground`: Files containing errors...
Проблема в том что мой код рабоатает но при скачивание говорить что тип файла не поддерживается мой код ---> ``` var urlContract = "https://dashboard-8tl3.onrender.com/%D0%90%D0%BD%D0%BD%D0%BE%D1%82%D0%B0%D1%86%D0%B8%D1%8F_2024-03-11_144401.png" function downloadContract(urlContract) { if (urlContract.inclu...
the framework is react,, the question is how can I upload (an image or pdf) when clicking on it, in the nutria of the <img> and <div> tags
|reactjs|
null
I work with the Spring framework and I encounter problem with mapping set of roles from many-to-many table. Let me show you my classes. ``` public class Role { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @NonNull private String authority; @ManyToMany(mappedBy...
Spring does not map set of roles
|java|spring|database|spring-boot|many-to-many|
null
How do I specify the name of the span operation in the OpenTelemetry package of the Go language? Span names from the documentation list: https://develop.sentry.dev/sdk/performance/span-operations/ I tried to specify through an attribute, but it just creates another attribute with the same name: ctx, span := tra...
Update for anyone searching for the same thing: ever since Wagtail 2.12, the original answer does not work as `stream_data` as a property of `StreamValue` was deprecated. You can use the following to achieve the same thing: def find_block(block_name): for page in YourPageModel: for block in...
[![enter image description here][1]][1] **Error Message**: ``` The portal is having issues getting an authentication token. The experience rendered may be degraded. Additional information from the call to get a token: Extension: Microsoft_Azure_Monitoring Resource: loganalyticsapi Details: The extension ...
The portal is having issues getting an authentication token. The experience rendered may be degraded
|azure|azure-keyvault|azure-authentication|
GKE autopilot is adjusting my resource requests due to my sidecar container ``` autopilot.gke.io/resource-adjustment: { "input": { "containers": [ { "limits": { "cpu": "30m", "memory": "100Mi" }, "requests": { "cpu": "30m", "memor...
GKE Autopilot scales up workload due to sidecar resource requests
|kubernetes|google-cloud-platform|google-kubernetes-engine|
I'm building a Spring Boot application that has the friendship functionality. I have User, Friendship entities and FriendshipDTO(for simplicity I removed JPA annotations): public class User { private Long id; private String email; private String firstName; private String lastName; ...
{"OriginalQuestionIds":[73368016],"Voters":[{"Id":14732669,"DisplayName":"ray"},{"Id":8017690,"DisplayName":"Yong Shun"},{"Id":21972629,"DisplayName":"jQueeny"}]}
how to print an array forward and backward based on boolean flag true/false using single for loop in java?
I notice this API call: [`CMFCPropertyGridProperty::AdjustButtonRect`][1]. But how do I add a button to a `CMFCPropertyGridProperty`? I would like to show a custom button on the right and manage clicking the button. Related question: https://stackoverflow.com/q/78127577/2287576 [1]: https://learn.microsoft.c...
You are trying to assign all props to state instead of only `suggestionsList`. Also, you don't need to put `suggestionsList` to state. It makes additional variable mutable and can lead to potential bugs. Just use it from props directly. Try this: ``` // Write your code here import {Component} from 'react' ...
``` DECLARE @fullTextCondition NVARCHAR(1000) = '4S Iphone' SET @fullTextCondition = '"' + REPLACE(@fullTextCondition, ' ', '" And "') + '*"' SELECT * FROM Product WHERE CONTAINS(ProductName, @fullTextCondition); ```
{"OriginalQuestionIds":[2100907],"Voters":[{"Id":112968,"DisplayName":"knittl","BindingReason":{"GoldTagBadge":"git"}}]}
I am trying to make a CountDownTimer for my Android app, but every time I try to start it using just `timer.start()`, it starts multiple timers. I don't know why. My code for this is: ``` val timer = object: CountDownTimer(5000, 1000) { override fun onTick(millisUntilFinished: Long) { println(milli...
I'm trying to fetch apis and combine the json objects into a single variable array that I can loop through. using .push my variable array ends up as.. ``` [ [ {"a":"1"} ], [ {"b":"2"} ] ] ``` when i want this.. ``` [ {"a":"1"} {"b":"2"} ] ``` Here's my trimm...
AvroParquetWriter.<GenericRecord>builder(filePAth).withSchema(schema).withCompressionCodec(CompressionCodecName.SNAPPY).withConf(Configuration).withDataModel(GenericData.get()).withWriteMode(Mode.OVERWTITE).withROwGroupSize(8*1024*10124).withPageSize(64*1024*1024).build() For Path i am using a logic path = "hdfsLocati...
I am facing issue with ParquetFileWriting n hdfs in flink where parquet file size is around 382 KB . I want the parquet file in MB
|apache|apache-flink|parquet|
null
app theme: Theme.Material3.DayNight.NoActionBar this id manifest: <activity android:name=".ui.activities.BaseActivity" android:exported="false" android:label="@string/title_activity_base" android:theme="@style/AppTheme" /> <activity ...
Strange black bar at the bottom of the screen android
|android|android-constraintlayout|
processing a list is quite easy with a `for`loop: @echo off setlocal set /P "op=Enter the number(s, separated by space or comma): " echo DEBUG: %op% for %%i in (%op%) do call :op%%i 2>nul|| goto :fail goto :eof :op1 echo one goto :eof :op2 echo two ...
I wish to write a function and use the "trace()" method inside the function, like this : ``` library(IRanges) mf <- function(){ insert.expr <- quote(message("tracing ...")) trace(what = "findOverlaps", signature = c("IntegerRanges", "IntegerRanges"), tracer = insert.expr, edit = TRUE, pri...
I am trying to generate dynamically a sidebar using the template coreui with angular 17 The error ExpressionChangedAfterItHasBeenCheckedError ``` ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current value: 'disab...
Hi so basically i guess you have created the table(blogs) before and probably you dropped the table(blogs) to run it again. I want you to know that every time you create a new table it also goes to migrations table. So in this case. 1. Be very sure you dropped the table 2. Then open the migrations table and...
I had to ensure in a php and mysql application that 2 different tables A and B, having a common document_number column that this column is unique in a union all between these 2 tables meaning it's values must appear in unique and consecutive order example: 1. I make A document I give number=1 2. I ma...
**Swift 5 Update** Set the boolean in your "didFinishLaunchingWithOptions" in your AppDelegate like so... //Assumiing you have made a singleton for Userdefaults public let defaults = UserDefaults.standard func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptio...
I've been trying to figure this out too, the closest I can get is finding the file registry for *imported* themes only; it doesn't include RStudio's own themes, annoyingly. > appdata/roaming/rstudio/themes on Windows > > c~/. config/rstudio/themes on mac
It seems to be a bug about "base::trace()" or "methods:::.TraceWithMethods()"?
|r|
null
I am creating a mobile application in Android studio, where the entire screen is occupied by a human image. The user should click, for example, on the leg, and information about the leg will be displayed to him. But I ran into the problem of specifying certain arbitrary places on the image, clicking on which a new acti...
How can I specify specific areas for clicking on ImageView?
|android|
null
I started to learn WireMock. My first experience is not very positive. Here's a failing MRE: ```java import com.github.tomakehurst.wiremock.WireMockServer; import org.junit.jupiter.api.Test; public class GenericTest { @Test void test() { new WireMockServer(8090); } } ``` ```xml <dependency> ...
SingleTableEntityPersister cannot be cast to class org.hibernate.metamodel.mapping.BasicValuedMapping
|postgresql|spring-boot|hibernate|jpa|spring-data-jpa|
|r|selenium-webdriver|tor|rselenium|
Have a custom live search feature on our wordpress website, which only displays 20 products in the middle of the screen for any given search. Would like to be able to remove this 20 limit, so that unlimited products are shown. So far have come up with the code below for our function.php file, which unfortunately ...
Trying To Get A PHP Filter To Work In Wordpress To Show Unlimited Products On The Page
|php|wordpress|function|filter|themes|
null
You can achieve it by splitting it function swapCharacters(str,i,j){ str=str.split("") [str[i],str[j]]=[str[j],str[i]] return str.join("") } Looks clean :)
Trying To Get A PHP Filter To Work In Wordpress To Show Unlimited Products On The Page During Custom Search
Is there any way to persist data from server to client in SSR apart from using "store" in SSRContext? The docs mostly mention Vuex, even though Vuex is deprecated. I'm using @tanstack/vue-query, which saves a lot of headaches when managing async or server state. It manages deduping requests, retries, query caching and ...
I would like to ask you how you create and manage modals in your React applications. I saw the solution when modals are handled using Redux.For example you dispatch the modal key and props into the state and after display the modal using a key. The minos of this approach is that when you need to pass some function into...
Modals in React applications
|reactjs|modal-dialog|
use `Cross Join` and `Subquery` to get your desired result ``` select AgeGroup,CAST(SUMNumberOfFans1 AS FLOAT)/SUMNumberOfFans2 from (Select Date, AgeGroup, SUM(NumberOfFans) SUMNumberOfFans1 From FansPerGenderAge WHERE date = (SELECT max(date) from FansPerGenderAge) GROUP BY AgeGroup) a CROSS JOIN( S...
You should declare a local `var`, and pass that to `Eval`. ``` // in the Button() { ... } closure var theCV = CLIPSValue() Eval(clipsEnv, "(find-all-facts ((?f message)) TRUE)", &theCV) ``` You don't need a `@State` here unless you also want to use `theCV` in other parts of the view. In that case, you can dec...
Here's one approach: * Use [`pd.json_normalize`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.json_normalize.html) with 'type' as metadata (include the same levels except 'prices'). ```python df = pd.json_normalize(red, record_path=['data', 'events', 'markets', 'outcom...
I want to find what percentage of the memory load accesses in a program is memory indirect, for example, A[B[i]], A[(B[i]&mask)+c], A[B[C[i]]], etc. My idea (have not started implementation) is to track if any register holds a value that has been loaded from memory. For ALU or bit operations, if one of the source re...
Percentage memory indirect accesses
|x86-64|cpu-architecture|intel-pin|
I want to convert My wordpress Website into a Mobile APP i am using Buddyboss theme. I want a app where user login once and than stay logged in unless he log out himself. I have tried many site but didn't find the solution.
How can I convert my website to Application?
|android|wordpress|web|native|
null
I am trying to resize iframes based on content changes for cross-origin content. Also I am trying open someone else's website in to my iframe so I don't have access to their site. Is there a way to do so? <!-- language: lang-js --> function resizeIFrameToFitContent(iFrame) { iFrame.width = iFrame.con...
[Check image][1] I'm new to this, but I understand that the file is missing. I'm working in vscode, and the error comes out of vs studio 1 I've been trying to install pandas using pip, but it always fails and gives me a giant wall of error text and this at the bottom [1]: https://i.stack.imgur.com/h1Qdv.p...
When using ObjectMessage to serialize and de-serialize an object that Class needs to be on the Classpath in both the sending and receiving application. I general your project needs to include a common Jar on the receiver side that contains the class being transmitted for this to work. ObjectMessage has a rather ch...
I am dealing with a library database today. The structure is kind of odd, and I am having trouble pulling the data how I want it to appear. So I have this query: SELECT lc.catalogID, hb_g.intro AS 'Genre/Subject', gk.kidsAge AS 'Ages', pb_g.intro AS 'Genre/Subject', pb.ageRange AS 'Ages' FROM libra...
I have written a code for finding prime numbers using sieve of Erasthenes algorithm, but the problem is my code works as it tends to be, but for only some numbers. It shows like "entering upto-value infinitely" as the error and for some numbers it works perfectly. As I started recently studying C in-depth I couldn't fi...
I'm trying to fetch apis and combine the json objects into a single variable array that I can loop through. using .push my variable array ends up as.. ``` [ [ {"a":"1"} ], [ {"b":"2"} ] ] ``` when i want this.. ``` [ {"a":"1"}, {"b":"2"} ] ``` Here's my trim...
I am scraping messages about power plant unavailability and converting them into timeseries and storing them in a sql server database. My current structure is the following. * `Messages`: publicationDate datetime, messageSeriesID nvarchar, version int, messageId identity The primary key is on `(messageSeries...
I also got the same error but in my case I wasn't getting the env variable which I recently added. This Error was fixed by stopping and restarting the react app.
This is considered as anti pattern in modern React ecosystem. According to single responsibility principle keep your business logic in a simple way with custom hooks (Use prototype inheritance in it, if required), To store API calls use Tanstack Query and to store global data use Jotai (Atoms). This libraries are v...
I have a model of SQLAlchemy. Here is my *models.py*: ``` class PlaceInfoModel(Base): __tablename__ = 'place_info' id = Column(Integer, primary_key=True, autoincrement=True) owner_id = Column(Integer,nullable=False) name = Column(String(60)) address = Column(String(300)) rating =...
Getting the Django ORM auth_user.id data using serializer
|django|django-models|django-rest-framework|sqlalchemy|orm|
null
I've spent quite some time in the last month trying to figure out how to run colima & docker engine on my Mac Pro M2 Max as x86_64 for both. Everything came from the missing compatible architecture (have only 'i386,x86_64') for dockerfile-maven-plugin version 1.4.13 as described here: [text](https://stackoverflow.c...
I'm making a web app with Flask using SQLALCHEMY to management the databases. I need to store in more then onde database. For example: "user_databse.sb" and "teacher_database.db". I read the documentation to do this, but when I try to use in my code I getting this error: > ModuleNotFoundError: No module named '...
Python - How to create multiple databases with SQLALCHEMY in Flask?
```cpp create<k+1, R..., T...>(v, in); ``` This is not valid because either the parameters are deduced or they are provided. Here they are provided, so deduction is cut. The first call is then `create<1,double,int,double,int>( v, in )`. The function receives its parameters but there are 5 non-discernible possi...
I have a webpage with two `<picture>` elements that each have `<a>` in front of them. The images are inline, next to each other. Whitespace is between these two elements (not sure why, but I'm fine with the small gap between them) and the whitespace itself has a little underscore or bottom-border type of characteristic...
Persisting @tanstack/vue-query query client in Quasar SSR
|javascript|vue.js|vite|server-side-rendering|quasar|
null