instruction
stringlengths
0
30k
My Entity Structure ``` import com.application.authserver.core.jpa.entity.AbstractBusinessUnitJpaEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.Index; import jakarta.persistence.Table; import lombok.*; import lombok.experimental.SuperBuilder; import o...
{"Voters":[{"Id":16540390,"DisplayName":"jabaa"},{"Id":1952287,"DisplayName":"DᴀʀᴛʜVᴀᴅᴇʀ"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[13]}
I want to active the virtualenv `venv` as I am inside the new folder `D:\pythonproject\first_django` when I run env\Scripts\activate in cmd I get The system cannot find the path specified. also I installed `venv` , when I run this command pip install virtualenv in cmd I get Requ...
I have following `html` code <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Sell Weapons</title> </head> <body> <form action="{{ url_for('predict')}}"method="post"> <label for="comment1">evaluate first product</label><br> <inpu...
I am attempting to run a SQL agent job from an outside scheduler on SQL Server 14 and when doing so I am encountering the following error(s); SMO failed with the following exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundExce...
Asci.SqlDmo.Interop, Version=14.0.0.0' not found when running SQL Agent job
|sql-server|
null
The question to me means something different than what the code suggests, that is: you want to reference the dictionary key in its value *in the same context* in which you create the dictionary. You can do that with the walrus (`:=`) operator (from Python 3.8): ```python d = { (k := "key"): f"Value + {k}" } ...
I'm maintaining two branches of two projects: Projcect LeonLog: master(version: 2.0.0) producing(version: 1.0.0) Projcect Octopus: master(version: 6.0.0, depending on LeonLog:master) producing(version:5.0.0, depending on LeonLog:producing) The projcect LeonLog yields a s...
I have a Flask app which I am running with gunicorn. It works by itself. I can reach the app at `localhost/` and go to other links from there. The app assumes its root path is `/` and generates all relative URLs accordingly. Now I want to put this behind a reverse proxy, for which I use Caddy. But also I want it to ...
|java|solr|hbase|janusgraph|apache-atlas|
{"Voters":[{"Id":1491895,"DisplayName":"Barmar"},{"Id":9952196,"DisplayName":"Shawn"},{"Id":354577,"DisplayName":"Chris"}],"SiteSpecificCloseReasonIds":[18]}
Flutter Solution If you're facing issues with accessing images from the gallery, particularly on Android 11 and above due to changes in storage permissions and scoped storage, you need to ensure that your app requests the appropriate permissions and handles file access correctly. Here's how you can modify the pre...
I am trying to learn **react js and springboot** application, and when java restart i am invalidating a tokenVersion (timestamp in jwt payload but not actual token) in jwt token. when java restart and if i try to reload react page or navigating spring security throws 403 forbidden. using the response i am checkin...
getting React Hook "useSetupInterceptors" cannot be called at the top level when try to use useSignOut hook
|reactjs|react-hooks|spring-security|jwt|
I'm having trouble with convergence of this [R-code](https://rpubs.com/enwuliu/1011024) translated to Python: **statsmodels.GLM** gives correct result import numpy as np import pandas as pd from scipy.special import expit # overflow encountered in exp import statsmodels.api as sm from matpl...
how to display the order information on the "orders" page. Because the old method no longer works. <https://wordpress.stackexchange.com/questions/348105/display-order-items-names-in-woocommerce-admin-orders-list> I tried all kinds of codes found on the Internet, but only the plugin works, but it is not as conveni...
How to show ordered items in orders page? woocommerce
|wordpress|woocommerce|
null
I just had SAP DS jobs that use some python code from outside (now it's lying in network folder). I need to switch code source to GitLab. Does anybody now proper way to do it? Or any suggestions:) I looked through the forums but didn't find any information about DS and GitLab collaboration.
How to integrate GitLab code into SAP DataServices job?
|git|gitlab|sap-data-services|
I am creating grafana variable from below flux query, from tags. I am using Grafana 10 and influxdb v2.7.4 and using Flux for queries. import "influxdata/influxdb/schema" schema.tagValues( bucket: "Vbuck", tag: "Service_Name" ) I also need to create variable from influxdb fields fro...
Creating variables on grafana version 10 from influxdb v2.7 fields
|grafana|influxdb-2|grafana-variable|grafana-templating|flux-influxdb|
I started learning QT but I'm having difficulty keeping a QVBoxLayout centered but also having the ScrollArea remain functional. I've searched for a solution online and everyone keeps telling me that a ScrollArea should have a widget within it and not a layout but when I do that the ScrollArea starts functioning but...
Use case or if in Table Value function to run query based on passed in value in SQL Server
|sql|sql-server-2019|
Your `<table>` HTML contains one or more `<tr>` rows - but those rows do not contain any `<td>` cells. Place the text (from `th:text="..."`) inside a `<td>`. ```html <table th:each="book : ${assignedBooks}"> <tr th:style="${book.getExpired()? 'color: red;' : 'color: blue;'}"> <td th:text="${book.getNa...
There is no trigger to determine which sheet is currently being viewed. And even if you try to use a combination of a time trigger and getActiveSheet() or getCurrentCell(), you will get Sheet1. But by using onEdit(), you can determine which sheet is currently being edited. function onEdit() { var active...
{"Voters":[{"Id":23872930,"DisplayName":"kuba"}]}
The biggest obstacle here seems to be that the flow-chart at the top of the question is either incomplete or plain incorrect. I was at first confused about the right-shifting of the divisor shown in the flow-chart, as most bit-by-bit division algorithms keep the divisor unchanged and instead apply a left shift to the c...
On first run when token.js file doesn't exist, I get redirected to localhost:3000 with the authenticate() function, and it gets authenticated successfully, afterwards it writes some of credentials to token.js, now on 2nd run, the token.js exist so it will call loadSavedCredentialsIfExist() Now I get error 401 unauth...
# **this is my really log** { "level": "info", "time": "2024-03-28T10:34:44.345Z", "req": { "id": 6, "method": "POST", "url": "/xx/xx/xxx", "query": {}, "headers": { "x-request-id": "91d4b3e2fcdf23f1c6ccccccccc90cc", ...
unable to serialize JSON type logs In fluentd(logging-operator)
|logging|kibana|fluentd|banzaicloud-logging-operator|
null
**just use this code: # scroll to the end of the result search list in the google you have to change the browser luanguage first to the enlish and past this code:** while True: results = driver.find_elements(By.CLASS_NAME, 'hfpxzc') driver.execute_script("return arguments[0].scrollIntoView();", resul...
Vue 2 JEST - [Vue warn]: Cannot find element: #app
|vuejs2|jestjs|
I'm studying [this great library for Representing Recursive and Impure Programs in Coq][1] I am having problems with mutual recursion (very first example in [documentation][2] gives me an error) [https://deepspec.github.io/InteractionTrees/5.0.0/ITree.Interp.Recursion.html#mrec][2] ``` Inductive D : Type -> Typ...
Coq : mutually recursive definitions with [mrec] in InteractionTrees Library
|coq|mutual-recursion|
I am trying to figure out the best way to finish an Activity from a ViewModel. I found one way to do this using a LiveData object and emitting a "signal". I have a doubt that this solution has a overhead. Is it the right solution or I should use more accurate? Here's an activity which demonstrates this solution...
Use google chrome extension [Dark Reader][1]. You can view any website with it in dark mode. [1]: https://chromewebstore.google.com/detail/dark-reader/eimadpbcbfnmbkopoojfekhnkhdbieeh?hl=en-GB&utm_source=ext_sidebar
I'm using react-day-picker in my react project and noticed the year select dropdown takes up the screen height on safari. Is there a way to add styling to this dropdown and add a max height to this dropdown? Thanks[You can see the image of dropdown here](https://i.stack.imgur.com/09QNf.png) I couldn't find any div t...
How to run particular jobs in GitLab CI/CD via GitLab API?
This is a circular reference because to resolve the name `SomeClass.classLock`, Swift must first expand `Lazify`. Why? Because `Lazify` can introduce `arbitrary` names, so the meaning of `SomeClass.classLock` might be different after `@Lazify` is expanded. See also [this section](https://github.com/apple/swift-evolutio...
The problem seems to be that you need to turn the "echoCancellation" off in the web view. After finding this solution I then tried the following and I now get the full 24kHz FFT spectrum with a 48kHz sampling rate. navigator.mediaDevices.getUserMedia({ audio: { optional: [ { ech...
As documented in Hyper's [Upgrade from v0.14 to v1](https://hyper.rs/guides/1/upgrading/) guide: > ### `Client` > > The higher-level pooling `Client` was removed from hyper 1.0. A similar type was added to [`hyper-util`](https://crates.io/crates/hyper-util), called [`client::legacy::Client`](https://docs.rs/hyper-...
So, I am using oracle to first find the intersections that exist between two geometries, and I have hit a snag where I think this may be an actual oracle error. It has overall been working well, except in this case where it failed to find the intersection where one exists. Here is my query below: ```sql SELECT ...
I have a problem with a 'simple' ADA program. This exercise aim at learning value by reference and post condition in ADA.
``` var j = schedule.scheduleJob(unique_name, timeNow, async function () { session10.startTransaction(); try { await readmodel.findOneAndUpdate( {}, { $set: { readonlyMode: true, yearEndClosure: true, }, }, { session10 }, ); var...
I took a look at `org.primefaces.component.headerrow.HeaderRowBase` and there is a `sortOrder` value. So adding `sortOrder="desc"` does the trick. For example in showcase : <p:headerRow field="representative.name" expandable="true" + so...
For angular material 16.2, this worked for me ::ng-deep .mdc-notched-outline { height: 84% !important; } ::ng-deep .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label { top: 50% !important; font-size: 14px !important; } ...
I am working on a PWA web application. I already completed the code on the browser side. On the server side I use PHP and I have the following information: ``` $publicKey = '123456789...'; $privateKey = 'abcdefg....'; $subscription = '{"endpoint":"https://fcm.googleapis.com/fcm/send/eCCP-Bu3sXQ:APA91bFbbjw....
push notifications with CURL on PWA application with PHP
**For angular material 16.2, this worked for me** ::ng-deep .mdc-notched-outline { height: 84% !important; } ::ng-deep .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label { top: 50% !important; font-size: 14px !important; } ...
I have two arrays containing file names files_ref=( ($find . -name '*.fasta') ) files_fq=( ($find . -name '*.fastq') ) I understand that if I want to iterate over pairs of items I would do something like this: for i in "${!files_ref[@]}"; do printf "%s is in %s\n" "${files_ref[i]}" "${fil...
iterate over items in one array and groups of items in seconda array in unix
|arrays|loops|unix|
For me, first name and last name were missing. To find it, I impersonated the user from the admin dashboard. It essentially asked me to complete the name/last name fields and I found the issue.
I'm trying to change the uri of every request from /path to /admin/path ` $newpath = '/regular' . $path; dd($request->server->set("REQUEST_URI", $newpath)); return $next($request);` `here i expected to to change the request to the new route but all i get is the old path not even changing`
Alter upcoming request uri
|php|reactjs|laravel|inertiajs|laravel-11|
null
This was already mentioned in another answer: counting the ways you can climb a staircase is given by the Fibonacci sequence. This is one of the [mathematical applications listed on Wikipedia][1].<br/> The way that problem is phrased on the site ("*you can either climb 1 or 2 steps.*") suggests the number of ways to...
Because razorpay web >=1.3.7 depends on package info plus 4.8.2 which depends on win32 4.0.0 <6.0.0, razorpay web >=1.3.7 requires win32 >=4.0.0 <6.8.0. Because wakelock windows >-8.2.1 depends on win32 3.8.8 and wakelock windows <6.2.1 depends on win32 2.6.0, every version of wakelock windows requires win32 2.6.0 or ...
razorpay web >=1.3.7 is incompatible with wakelock windows
|flutter|razorpay-andoid-sdk|
null
I made a github blog using jekyll hydejack. I want to change the main page and know where to load this. (The main page I'm talking about is the page that moves when you click on the blog name. = It also refers to the page that is accessed when entering the top-level domain.) I'm using a starter kit.
I have a challenge in postgres and spend the the whole day trying to nail it and killing me with it. I have these two tables: ``` Tracking plan ------------------------------------------------ id | parameters | subject 1 | [{"coding":{"code":"8231-0...
Postgres advance crossing query
|database|postgresql|data-science|
``` 'use client'; import { Dispatch, SetStateAction, createContext, useEffect, useState } from 'react'; interface ColorsContextProps { color: 'blue' | 'green' | 'red' | 'orange' | 'violet'; setColor: Dispatch< SetStateAction<'blue' | 'green' | 'red' | 'orange' | 'violet'> >; } i...
Next 14 - localStorage not working after refresh
|reactjs|next.js|local-storage|next.js13|
Google API NodeJS - Getting 401 Unauthorized Error on Subsequent Runs After Successful OAuth2
|api|google-cloud-platform|gcloud|
I am working on a MATLAB App which takes serial data from a GPS receiver and plots it in real time. The only part of this which I am having trouble with is actually filtering this serial data and reliably extracting the data I need from it. The data is (to my knowledge) not formatted in any standard format so I haven't...
How would I go about filtering non-standardly formatted serial data which contains some junk binary between data entries?
|python|matlab|serial-port|data-filtering|
null
I think that the issue might be related to the path you're using to access the audio file..... You have to make sure the file path to your audio file is correct. You're currently using ./ex.ogg. This means the program is looking for ex.ogg in the current working directory. Double-check that ex.ogg exists in the same...
On a Windows machine I had this problem when trying to run a certain unit test. While everything worked fine with a Maven build and also my colleagues had no problems. Since this is a legacy project doing much stuff with reflection and resource loading. Shorten command did not help me by using an argfile. I was ge...
For reference, this is the complete error message from gcc for your code (see [here](https://godbolt.org/z/Kx1Pecxc7)): <source>: In function 'int myFun()': <source>:5:12: error: 'x' was not declared in this scope 5 | return x*2; | ^ Nothing more. And gcc is correct. Yo...
I resolved the issue with a checkbox: I Created a checkbox in cell C4 in sheet "Submitdata" I added following code in onedit: function onEdit(e) { var spreadsheet = SpreadsheetApp.getActive(); var ss = SpreadsheetApp.getActiveSpreadsheet(); var ui = SpreadsheetApp.getUi(); var res...
{"Voters":[{"Id":4117728,"DisplayName":"463035818_is_not_an_ai"}]}
Since I've had to deal with this same issue, out of completeness and building upon [Jeff's answer][1], here's a complete example so that the TS compiler will fully comply: ``` // types/next-auth.d.ts import NextAuth, { DefaultSession } from "next-auth" import { JWT } from "next-auth/jwt" declare module "next-aut...
Creating a list of "page" objects from a file system. which looks like " pages/ - Home.jsx - Blog.jsx - Post.Blog.jsx - Posts.Blog.jsx - private/ -- Admin.jsx -- Dashboard.jsx -- admin/ --- Main.Admin.jsx -- author/ --- Post.Admin.jsx -- editor/ --- Editor.Admin.jsx " 1. For Filenames with single n...
react-day-picker year select dropdown customize max height?
|react-day-picker|
null
Is there any way to create a relationship on a Laravel model using an "OR" condition for the field used to join the table while loading an eloquent model? Example Table: `user_connections` | Name | Type | | -------- | -------- | | id | bigInt\|primary\|auto_increment | | from_user_id | bigInt | | to...
Laravel Relationship Using An OR Condition on the joining field
|php|mysql|laravel|foreign-keys|relationship|