instruction
stringlengths
0
30k
Notification Using Rest Api
Disable annoying source code modification indication (codelenses and text decorations)
How to enable sound for background notifications while keeping foreground notifications silent in Capacitor with @capacitor-firebase/messaging?
This is my code to read the csv file asynchronoulsy using ReadLineAsync() function from the [StreamReader][1] class but it reads first line only of the [csv file][2] private async Task ReadAndSendJointDataFromCSVFileAsync(CancellationToken cancellationToken) { Stopwatch sw = new Stopwatch(); ...
PyCharm crashing with "multiprocessing" error in single threaded application only when debugger is attached
|python|pycharm|
I'm developing a webapp with Next.js and I am at a point where I need to decide on an authentication strategy. My options seem to boil down to two main categories: - **Self-Hosted Authentication:** using libraries like [Auth.js][1] or [Lucia Auth][2] that are hosted on the same server. - **Third-Party Authenticatio...
Next.js Auth: Self-Hosted vs Third Part Provider
|authentication|next.js|next-auth|
{"OriginalQuestionIds":[5755506],"Voters":[{"Id":4108803,"DisplayName":"blackgreen"}]}
Thank you for all the explanations and very quick response. I got round this issue with the following code. I basically convert it to a string then back to a decimal. Maybe not the correct way but the cleanest for me. Decimal(np.format_float_positional(abs(dist))) <= t.min_dbv
You have to do two things to start with unsecure protocol http: 1. Remove the part https://localhost:7248 from launchSettings.json uner Properties folder both from Client and Server Project. 2. Comment the line app.UseHttpsRedirection() from the Program.cs under the Server Project Also you need to know how you...
Since January 2024 Edge (and all major browsers) support AVIF files
We have an ASP.NET MVC 4 web app that uses SQL Server 2012 and Entity Framework as ORM and Unity for IoC. Web app is hosted on Amazon EC2. I started getting "Physical connection is not usable" exception. It happens few times a day. I searched many articles and forums and tried all the possible suggestions: - Tried ...
i am using material date picker in my andorid priject in fragment on specific click i want to show user the date dialog but on click nothing is showing . here is my code [Image link](https://i.stack.imgur.com/CyZRZ.png.imgur.com/5saGg.png) i am expecting that user select two date range and i get those date
I want to create a Snackbar in flutter. I want it to have borders on all 4 corners and have a border width with a different color only at bottom side. [Snackbar required][1] I couldn't find a way to add both the properties together. Can someone suggest a way to do it without using external flutter libraries or...
I want to create feature information(like feature matrix) based only on the similarity information of each drug, but is it possible to use the method using truncated PCA without any abnormalities? If there is a problem, what are the other ways? I've tried embedding using random walk, but I'm looking for other wa...
Without path overlay, this is my image with 2 custom marker without path overlay: [![][1]][1] In my android application, in Navigation activity, routeObserve, here 's my code: List<Point> list = PolylineUtils.decode(routeProgress.getRoute().geometry(), 6); List<Double> coordinates = ...
null
null
null
null
null
|azure|powershell|azure-powershell|microsoft-partner-center|
Very simple: do the compression, then snip the result. import gzip plain = b"Stuff" compressed = gzip.compress(plain) bad_compressed = compressed[:-1] gzip.decompress(bad_compressed) # EOFError (This is in-memory for the simplicity of demonstration; it would work the same if you mani...
I am getting the below java exception for API which i am triggering from eclipse, JAVA Version : 1.8 IDE : Eclipse Exception :"javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target" P...
I want to search for a date (which is a struct) in an array of dates to see if it is in it. This is the first time I am using `bsearch` and it always returns the same result, `0`, whereas it should either return `null` or a pointer to the date found. I am using the same comparing function I used to sort the array and t...
{"Voters":[{"Id":3001761,"DisplayName":"jonrsharpe"},{"Id":8054998,"DisplayName":"Bench Vue"},{"Id":6463558,"DisplayName":"Lin Du"}]}
{"OriginalQuestionIds":[2953834],"Voters":[{"Id":16343464,"DisplayName":"mozway","BindingReason":{"GoldTagBadge":"dataframe"}}]}
{"Voters":[{"Id":9599344,"DisplayName":"uber.s1"}]}
A content-addressable store is utilized by pnpm for managing dependencies. Dev Containers often mount project directories from the host machine's filesystem (e.g., `/workspaces/nx`), relying on the host's directory structure being available. Thus these dependencies may end up in the mounted directory, which can be c...
I am trying to download a file from my ftp server. As soon as the file is larger than 300KB, the download fails. Below that limit, it works. The ftp server is running in a Docker container (image: delfer/alpine-ftp-server). Here is my method: ```java public InputStream getInputStreamFromURI(String uri) throws IOExc...
Whatever the bug was in 2.0.8, it no longer occurs in 2.0.31 which is the current version at the time of writing this, and can be downloaded through maven or at https://pdfbox.apache.org/download.html
{"Voters":[{"Id":21363224,"DisplayName":"markalex"},{"Id":10008173,"DisplayName":"David Maze"},{"Id":213269,"DisplayName":"Jonas"}],"SiteSpecificCloseReasonIds":[18]}
I'm optimizing some work I did moving from Orange to Python code, but I'm having some problems with image Embedders. I'm trying to recreate my work using Tensorflow/Keras, but the outputs of the VGG16 networks but the 4096 outputs of the activation layer of the penultimate FC layer for this architecture, using Orange ...
How to read the latest line from the csv file using ReadLineAsync method?
We facing weird issue with Flutter iOS, I have a listview which shows heterogeneous widgets in which some of the widgets are either network images which are rendered using CachedNetworkImage or some have API calls (using Dio) and on success we render widget. In terms of iOS this widgets with API calls are rendered r...
Flutter iOS Listview/ScrollView API call issue
|ios|flutter|dart|riverpod|
null
def create_media_container_for_reel(video_url, access_token, caption, user_id): graph_url = f'https://graph.facebook.com/v19.0/{user_id}/media' payload = { 'media_type': 'REELS', # Updated as per the new requirement 'video_url': video_url, 'caption': c...
null
|redux|rxjs|blazor-webassembly|system.reactive|fluxor|
I have written my Golang HTML DOM parser with pure Golang and no dependency used in it. This project is still under development. But now it is usable, and I will develop it in the future. Project link: https://github.com/pejman-hkh/gdp/ ```go package main import ( "fmt" "github.com/pejman-hkh/gdp/gdp" ...
I am creating an API that searches and reverses an entry in the account.move model. I am able to find the correct entry and reverse it using the refund_moves() method. However, whenever I try to confirm the reversed entry using the action_post() method, I get a "Expected singleton: res.company()" error. I've used the ...
I am rendering a component inside an iframe to print. I have tested it in Firefox, where it works, but a collaborator on the project has pointed out that there are issues in both Google Chrome and Internet Explorer. The error I'm getting: *TypeError: Cannot read properties of undefined (reading 'nativeElement')* ...
Angular 16: ElementRef error in Chrome, but not in Firefox
|angular|
The result of my simple SQL query ``` SELECT ID, STARDATE, ENDDATE FROM A INNER JOIN B ON A.ID = B.ID AND B.CONTRACTID = 572786 WHERE A.ISACTIVE = 1 ``` is: | ID | STARDATE | ENDDATE | | --- | --- | --- | | 394539 | 2024-03-01 | 2025-12-31 | | 394540 | 2026-01-01 | 2026-12-31 | But now I would li...
How to split row with date range into multip rows by year
|sql|split|date-range|group|
null
Recently I was asked to maintain an old image processing project(5 year old) at my company and It uses openCL. There is piece of code which works like below **if (oneKernelFlag == true) launch a gamma correction kernel on the whole image else break the image into grids(ex:- 2*2) for loop (....) // itera...
I have a performance-critical tight loop which, for a large number of keys, needs to look up the key in a map and do something with that key if it exists in the map: Map<Integer, SomeClass> map = ...; for (int i : someLargeIterable) if (map.containsKey(i)) doSomething(i, map.get(i)); ...
Avoiding double lookup in Map
|java|
I want my shiny app to remain active continuously so that anyone who accesses the link can instantly use the app without waiting for it to start. According to [documentation](https://docs.posit.co/shiny-server/#application-timeouts) app_idle_timeout set to large values should solve my problem but it doesn't. My app ...
Setting app_idle_timeout for shiny changes nothing
|r|ubuntu|shiny|shiny-server|ubuntu-22.04|
When login user via gigya screenset lang parameter is truncated from de-at to de and we have problems regarding consentments. When user was registered correct language was set de-at by setting ```js window.__gigyaConf = {toggles: {useFullLangCode: true}}; ``` Is there any option to also used fulllangcode i...
How can I implement nested columns in a Streamlit data_editor?
I have two jobs of the same github workflow. The first job produces an artifact and uploads it. Here is the log for that: ``` Run actions/upload-artifact@v4 With the provided path, there will be 58 files uploaded Artifact name is valid! Root directory input is valid! Beginning upload of artifact content to blo...
So I am trying to deploy laravel on vercel from [php-laravel](https://github.com/juicyfx/vercel-examples/tree/master/php-laravel) but I am getting below error --> Downloading user files 11:24:03.561 | Downloading PHP runtime files 11:24:03.564 | Installing Composer dependencies [START] 11:24:03.567 | php: err...
Error while deploying Laravel App on Vercel Project
|laravel|deployment|vite|vercel|
null
If you're encountering the error, you can resolve it by wrapping the `TextField` inside an Expanded or `Flexible` widget within the `Row`. Row( children: [ TextField( controller: controller, onSubmitted: (String value...
null
I don’t have sudo access and contacting sys-admin takes a non trivial amount of time. Here is the output of `nvcc -V` > nvcc: NVIDIA (R) Cuda compiler driver > Copyright (c) 2005-2024 NVIDIA Corporation > Built on Tue_Feb_27_16:19:38_PST_2024 > Cuda compilation tools, release 12.4, V12.4.99 > Build cuda_12...
|python|pytorch|computer-vision|anaconda|cuda|
- I use conditional resource creation for my lambda function. - When I try to build the template I get presented with the error `InvalidTemplateException Every Condition member must be a string.`. The CLI does not provide more details as to *where* something is wrong. - As my condition is a string, I'm not sure wh...
AWS Cloudformation: InvalidTemplateException `Every Condition member must be a string.`
|aws-cloudformation|
##### Problem This is the problem: `Condition: !Not [ IsLocalExecution ]` ##### Solution Create a new condition ``` IsNotLocalExecution: !Equals [ !Ref LocalExecution, 'false' ] ``` Use that condition instead: ``` ProductionDeploy: Type: AWS::Serverless::Function Condition: IsNotLocalEx...
403 Permission Error When Trying To Upload Reel To Instagram Using Graph API, But Image works?
|python|instagram|instagram-reels|
Since MultiIndexes are iterables, an easy way would be to use [`zip`](https://docs.python.org/3/library/functions.html#zip): ``` out = list(zip(*idx)) ``` Output: `[('A', 'A', 'B', 'B'), ('C', 'D', 'C', 'D')]` As lists: ``` out = list(map(list, zip(*idx))) # [['A', 'A', 'B', 'B'], ['C', 'D', 'C', 'D']] ```
Good morning, I'm having several problems playing a video with the exoplayer. More precisely, I'm trying to create an Android app to be able to deploy it on Pepper's tablet which interfaces with a website that allows you to create and upload social stories with images, videos and audio. We checked the site to see if th...
Crash video on SimpleVideoExoPlayer
|android|multithreading|race-condition|exoplayer2.x|
null
|java|spring-boot|redis|threadpool|jedis|
As already pointed out, in the OAuth 2.0 'Authorization Code Flow', the code provided not only should expire shortly after being generated but can be used only once as stated in the 4.1.2 section of the documentation provided from the same previous answer: https://www.rfc-editor.org/rfc/rfc6749#section-4.1.2 Now, be...
React application connected with Backend using python. Fetching dropdown data from database. Below is the ui code- ``` useEffect(() => { const fetchLocations = () => { try { const response = fetch('http://localhost:8000/locations'); const data = response.json(); console.log(...
Unable to find any artifacts for the associated workflow - github actions
|github-actions|
I've started using psycopg2-binary, and it is working with it.
I'd like to know if a GameObject that is a UI Element (Button for example) in a screen space canvas is visible on screen or not. Checking activeself is not good enough because if the element is active but has an inactive parent, it won't be visible. I've been googling away for an hour without success. Should I ch...
Unity : Check if UI Element in screen space canvas is visible or not
|unity-game-engine|
When using Spring Cloud Stream, I need to give the group value to the binders dynamically, how can I do this?
Spring Cloud Stream Rabbit Binder Dynamic Group Name
|rabbitmq|spring-cloud-stream|spring-rabbit|
Same issue is answered [here][1], Just Wrap your text field with CompositionLocalProvider like below. CompositionLocalProvider( LocalTextInputService provides null ) { OutlinedTextField( label = { Text("TEXT1") }, value = field...
I am using selenium to automatically login website https://fiverraffiliates.com/loginaffiliate/. But Selenium did not load the page. It just displayed a white website and nothing happened (below image). This is my code: ```python from selenium import webdriver from selenium.webdriver.common.by import By from ...
I'm running Unity 2022.3.20f1 and can't find any polyspatial options anywhere. I've gone through start up guides and Unity's official videos but nothing aobut why the options wouldn't be here.. I am using Unity Pro here. [![enter image description here][1]][1] [![enter image description here][2]][2] [1]...
No PolySpatial option under 'window', project settings xr says there's no VisionOS plugins in XR Plug-In Management either
|unity-game-engine|apple-vision|
When the project had one data source, native queries ran fine, now when there are two data sources, hibernate cannot determine the schema for receiving native queries, non-native queries work fine. **application.yaml** ``` spring: autoconfigure: exclude: org.springframework.boot.autoconfigure.jdbc.DataS...
i would not suggest to store data in json due to usage you need at compile time. so something like this string value = businessMessagesModel.MSG_1.en - will be available at compile time. as a different approach i would suggest: this is example to have class as enum which you can add messages at compilation and dyn...