instruction
stringlengths
0
30k
{"Voters":[{"Id":2372064,"DisplayName":"MrFlick"},{"Id":313768,"DisplayName":"Reinderien"},{"Id":22180364,"DisplayName":"Jan"}],"SiteSpecificCloseReasonIds":[13]}
I faced a similar issue resolved by simply installing serverless globally before deployment command. Workflow file: ```yaml name: CI (Push) on: push: branches: [main, cs_cancellation] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 # Setup the nod...
|r|nlp|r-package|emotion|
In order to format the y-axis marks with "%", you can use the Decimal.FormatStyle.Percent: .chartYAxis { AxisMarks( format: Decimal.FormatStyle.Percent.percent.scale(1), values: [0, 25, 50, 75, 100] ) } If you want to let the default values show (in the case yo...
`ngx-countdown` expects `leftTime` to be a number representing seconds left. So to make it work you need to find a difference between `auctionEnd` which is a UTC string and the current Date and convert it into seconds. Here is how your component could do this: ```ts export class TimerComponent { config = { ...
We are facing an issue in Azure AD B2C to authenticate only Local and Guest users. It is possible with just an application of a single tenant. But We need to add custom claims in token which is not possible at the application level. let me explain my requirements, I need to authenticate only those users who are in t...
How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
|azure|azure-active-directory|azure-ad-b2c|azure-ad-graph-api|azure-entra-id|
null
|servicenow-rest-api|
null
The existing answers suggest sensible alternatives for restructuring the input data in order to establish a single-source mapping between URLs and output files, but to answer the question as asked: $urls = Get-Content .\urls.txt $outputs = Get-Content .\outputs.txt foreach ($i in 0..($urls.Count-...
how to render a mermaid diagram inside a popup
|javascript|reactjs|mermaid|
I am currently making a chrome extension that looks for all the email addresses on a webpage and then highlights them to make them more visible. I was following a video that guided me on the script that searches for the emails but am not sure how to actually highlight them. This is the code I have so far, but like ...
How do I highlight email address strings through a chrome extension?
|javascript|google-chrome-extension|
null
I am trying to run a Flask app on my Synology Diskstation running DSM 7.2: 1. I have setup a port-based virtual host with a Python Profile loaded with the Flask module and the backend pointed to the appropriate directory. 1. I created a super stripped-down Flask app However every time I load the app page I get t...
Synology DSM 7.2: how do I fix a virtual server error page for a Flask application?
|python|flask|virtualhost|wsgi|synology|
null
Im trying to compare the users input for the (username, password) i want to then check if their input is in the database, if so it will print they have entered valid details, if not print they have entered incorrect details. ``` def check_data_with_tbl(packet): # takes the packets sent by the client and compare...
Checking multiple user inputs to multiple fields in a sqlite3 database with python
|python|sqlite|
null
{"Voters":[{"Id":888462,"DisplayName":"Dario Zadro"}]}
I have been stuck on this issue for HOURS. Finally I've realized that it is because of the [method swizzling done by Firebase][1] (Even though I don't use Cloud Messaging). In order to resolve this, you should add <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> ...
I added some layers to pretrained MobileNet model and trained it. Then saved model with ``` model.save('model.keras') ``` Also tried this just in case: ``` keras.saving.save_model(model, 'model.keras') ``` But when i load the model i get the error: ``` keras.models.load_model('model.keras') ``` > Value...
[In this example](https://dexie.org/cloud/docs/access-control#example-sharable-todo-list), we see updating a record with a key `realmId` ```js // Move todo-list into the realm (if not already there): db.todoLists.update(todoList.id, { realmId }); ``` Is it possible for a record to be in multiple "realms"?
Can a record be in multiple "realms" in Dexie?
|dexie|
{"Voters":[{"Id":476,"DisplayName":"deceze"}],"SiteSpecificCloseReasonIds":[18]}
I added some layers to pretrained MobileNet model and trained it. Then saved model with ``` model.save('model.keras') ``` Also tried this just in case: ``` keras.saving.save_model(model, 'model.keras') ``` But when i load the model i get the error: ``` keras.models.load_model('model.keras') ``` > Value...
Yeah so i'm barely new at this but I have a problem where my app has this backend at amazon, i do have an web application of my app and a mobile one. Sometimes ago some neat guys were some kind of scrapping our data from our servers, i attempted all the things, like configuring cors, changing he auth method and so ...
Is it viable proxying all my mobile apps requests, to some kind knowing that a request is coming from a secure source
|security|web|mobile|server|proxy|
null
I just solved this problem (honestly by trying random codes based on next-auth versions in github issues) solution: import NextAuth from "next-auth"; import GoogleProvider from "next-auth/providers/google"; const authOptions = { providers: [ GoogleProvider({ clientI...
I'm trying to design a class in an object oriented way and not seeing any great options. I have a containing object that needs to contain a list of values. So each row in the containing object could be viewed as a List. The number of columns of that containing object might be different. I'm not sure how to ...
How can I split string with multiple delimiters and then swap words based on few conditions - From string - > 'customer_document_map_ocsumm2','customer_ocsumm1','session_detail_ocsumm2' To string - >'ocsumm2.customer_document_map'::regclass,'ocsumm1.customer'::regclass,'ocsumm2.session_detail'::regclass
Split with multiple delimiters and swap words using awk
|awk|
I found a 3-year-old tutorial on youtube and it contains the following code snippet: ``` import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } from '@redux-devtools/extension'; import thunk from 'redux-thunk'; import rootReducer from './reducers'; const initialState = {}; con...
Redux deprecated code (thunk middleware related)
|reactjs|redux|middleware|
null
In my macOS app I need to allow the user get a list of absolute local file URLs by selecting them from Finder using copy-and-paste or drag-and-drop. I'll filter them by the extension ".raw" and they should go, I think, in an array of URL. My experience using an app that support this suggests that I should implement bot...
{"Voters":[{"Id":14732669,"DisplayName":"ray"},{"Id":238704,"DisplayName":"President James K. Polk"},{"Id":5382650,"DisplayName":"Craig Estey"}],"SiteSpecificCloseReasonIds":[13]}
With sprint boot 3.1.5 in two microservices, one using FeignClient to request to the other microservice , I have this properties configuration in both microservices: management: tracing: propagation: produce: b3 consume: b3 brave: span-joining-suppo...
With "span-joining-supported" brave tracer feature, dont get to propagate spanIds to other service using feign
|spring-boot|micrometer-tracing|
I have a Vite-based React library, currently structured like this: ``` import { Button, Typography, Box, Flex, Color, TypographyVariant } from '@placeholder-library'; ``` I want to separate the imports to add submodules so that components and shared are imported from different paths: ``` import { Button, Ty...
I will add about pagination, the limit at the beginning can be fixed or change depending on how many elements need to be displayed on the page. Fixed number of elements per page: $start = $curent_page = 0; $limit = $per_page = 15; if (!empty($_GET['page']) and is_numeric($_GET['page']) and $g...
I am currently trying to implement a start input adornment in input props in my MUI TextField, however when i do so the default label sits where it sits when the text field is focused (but it's in the unfocused state as it's grey): [![faulty label orientation](https://i.stack.imgur.com/ZfkVG.png)](https://i.stack.im...
Hi guys I write a program but program dont opening can you help me[enter image description here][1] [1]: https://i.stack.imgur.com/Sk1Yq.png
RecursionError and pyinstaller .spec error
|python-3.x|pycharm|pyinstaller|tensor|
I have modified a Bluetooth device - a number pad - so that it has only a few keys, so when a host asks me to enter a PIN it generates I cannot do that (i.e. I can enter '1111' but not a pin with most numbers). When I pair with Windows, the first try fails, but then the system asks me to choose my own pin, I enter '11...
Pair bluetooth device to Android 12 phone by selecting my own pin
|java|bluetooth|pairing|
null
You can use the 'aescryptojs' package on the flutter side and 'crypto-js' on the node.js side. This way the AES algorithms will work consistently on both client and sever side. Flutter: class DataEncrypt { static wrappingEncrypted(dynamic data) { // Todo: datanin sifrelenmesi islemi ...
I im needing to detect a pc or/and get bytes from USB, i was testing and nor my own application in kotlin or play store apps can detect my pc, there is a way to make this work? The connection i meant is PC:Host - Cellphone:Client USB: Type-C 2.0 (not OTG) ``` val DeviceMan = getSystemService(Context.USB_SERVI...
In SwiftUI and macOS how do I copy-and-paste and drag and drop multiple local file URLs into a scroll view
|swift|xcode|swiftui|drag-and-drop|copy-paste|
null
I have following component: import { FormProvider, useForm } from "react-hook-form"; const Test = () => { const { mutate, isLoading: searchLoading, data: warehouseResult, } = useWarehouseSearchByField(); useEffect(() => { mutate( ...
|c|algorithm|bit-manipulation|micro-optimization|bcd|
I hope you're all doing well. I've been working on addressing a specific constraint in OPL and attempted to write code to solve it. However, it's not functioning as expected. Could anyone provide guidance on the correct approach to do that. [here is the constarint](https://i.stack.imgur.com/ZyWkk.png) ``` range ...
If I am using editor on https://studio.asyncapi.com, is there a way to check the async api studio version using the web console? Thanks I tried looking for any version files in the Sources tab and Debugger, but couldn't find any. I also tried async.version, but din't work as well
How to check the asyncapi/studio version when on https://studio.asyncapi.com/
|asyncapi|
null
Inheritance: Use to inherit the properties/methods of the class (`AbstractClass`). Since the class is abstract, it just defines the common structure definitions, that must be present in the children that inherit it. When you do inheritance, there is no need for adding in the providers array, seems like an unnecessar...
Why does the blurring convolution kernel scale down the image?
|c++|image-processing|kernel|convolution|nuke|
null
|neural-network|
You can splice the concatenated values of the left and right columns. The following Apps Script should work: > _**Note:** The `index` is the position of the column you will be inserting after._ ```js const __spliceAndMap = (rows, index, mapFn) => rows.map((row) => row.toSpliced(index + 1, 0, mapFn(r...
This is my NavGraph, here the destination "VerificationScreen/{verificationId}" is being called 4 times thus creating the viewmodel 4 times. What could be reason for this? ``` @Composable fun NavGraph( navController: NavHostController, startDestination:String ) { NavHost(navController = navController...
Navigation destination is being called 4 times for some reason in jetpack compose?
How to Make MUI TextField label behave as default whilst having a Start Input Adornment
|reactjs|material-ui|label|textfield|adornment|
null
The batch decompilation in command line was never added because a menu `File -> Save All Sources` already addresses this need. For command line interface, kwart's jd-cli is now: https://github.com/intoolswetrust/jd-cli Also a fork of jd-gui is available here: https://github.com/nbauma109/jd-gui-duo
I added some layers to pretrained MobileNet model and trained it. Then **saved** model with ``` model.save('model.keras') ``` Also tried this just in case: ``` keras.saving.save_model(model, 'model.keras') ``` But when i **load** the model i get the **error**: ``` keras.models.load_model('model.keras') ...
I have a strange behavior with this method and the way the server receives the information, can't figure out why it happens. So I have this simple method that calls the **RequestClientCredentialsTokenAsync** ```lang-cs private async Task<TokenResponse> Token() { var requestBody = new ClientCredentialsTokenRe...
null
What helped me was to change the way of managing data fetching, when the error occurred, I performed the fetching from the client side, when I refactored the code to a fetching from the server side it worked without problems. # Previously - Page ```react // src/pages/home.js import formServices from "@/servi...
|html|css|z-index|
Try parseFloat() instead parseInt() cause parseInt() "convert" e.g 3.14 to 3 See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat And use . instead , in your number input...
This is worked for me: Console.ReadKey();
You can see in this other answer a complete explanation of why your .gitignore is failing: https://stackoverflow.com/a/61556103/12508080 Correct syntax : * !Dir1 !Dir1/Hi.txt
You can't bind to methods. You are using MVVM so I would suggest you to use attached properties in combination with commands. You could also use the MouseBinding class: http://msdn.microsoft.com/en-us/library/system.windows.input.mousebinding(v=vs.110).aspx. <strike>Commandbinding is explained quite well here: http:/...
How to detect a pc from android
|android|kotlin|usb|
null
Resource definition for reference ```kt sealed class Resource<T>(open val data: T?) { class Success<T>(override val data: T) : Resource<T>(data) class Failure<T>(val message: String) : Resource<T>(null) class Loading<T> : Resource<T>(null) } ``` In my HomeScreen composable, employeeR...
I'm trying to get SCP working with hashes. I'm inserting the hashes both in the header (`Content-Security-Policy`) and in the html page. When I disable CSP and only use SRI, everything works. But when I add CSP policy for `script-src`, I get an error in Chrome: ``` Refused to execute inline script because it viol...