instruction
stringlengths
0
30k
I try to use play feature delivery for an android app for splitting an app with more than 400 Mo size. I didn't manage to link the file "videonamexyz.mp4" from the module "feature_video" The absolute path in the module "C:\Users\xxxxxx\AndroidStudioProjects\namexyz\feature_videos\src\main\res\raw\videonamexyz.mp4" ...
problem with linking ressources with play feature delivery android app
|android|kotlin|
null
Image: https://i.stack.imgur.com/3dIm0.png I have a method called Background Blur, but it completely blurs the background of the window, and even if the window is transparent, the corners of the window look bad. How can I ensure that this is applied only to the background of the border? Blur.cs: ``` namespa...
Thats my first post on stackoverflow so i hope i'm doing this properly. if not let me know. i have a problem with the code, but i cant see were. The CS50 check gives me un output error: ** *":( encrypts "This is CS50" as "Cbah ah KH50" using yukfrnlbavmwzteogxhcipjsqd as key Cause output not valid ASCII text"*** ...
What's the difference between the Microsoft.ApiManagement/service/portalsettings and Microsoft.ApiManagement/service/portalconfigs
|azure-api-management|azure-bicep|
null
I have a list component to display data fetched from a REST API. I do the fetching in a `useEffect` hook with no dependency array, and set the result into my state. This is my code: ``` import { useEffect, useState } from 'react'; import { fetchAllMedias } from '../service'; import { MediaResponse } from '../type...
Undefined reference in MinGW after moving from VC++
|c++|compilation|linker|g++|mingw|
|visual-studio-code|jupyter-notebook|vscode-debugger|debuggervisualizer|
Your sample code shows that you are using the [deprecated](https://developers.google.com/identity/sign-in/web/deprecation-and-sunset) Google Sign-in JavaScript library. You should [migrate](https://developers.google.com/identity/gsi/web/guides/migration) to the new Sign in with Google library. FedCM is only applicable ...
I was facing the same issue and this has solved my problem: import daisyui from 'daisyui'; /** @type {import('tailwindcss').Config} */ export default { content: [ "./index.html", "./src/**/*.{js,ts,jsx,tsx}", ], theme: { extend: {}, }, ...
You have some data model like this: public class Model { public string? RootEntity { get; set; } public int Count { get; set; } public List<Item> Results { get; set; } = new(); } public record Item(string Name, string Email, string Function); And you would like to deserialize JSON to this model ...
The comment posted by jasonharper is "on point." Unless the work done by `function` is sufficiently CPU-intensive, the time saved by running it in parallel will not make up for the additional overhead incurred by creating child processes. If you are to use multiprocessing, I would simply break up the half-open inter...
In React.js with Vitest, how can I test a list that displays data from an API is rendered properly?
|reactjs|typescript|unit-testing|vite|vitest|
Such as is reported in docs: > Using update() also prevents a race condition wherein something might change in your database in the short period of time between loading the object and calling save(). Finally, realize that update() does an update at the SQL level and, thus, does not call any save() methods on your m...
EDIT: Made some changes to the code which answered some of my previously asked questions, but now I have new questions I am very new to threads and parallel programming so forgive me if I did things unconventionally. I have two threads, and I am trying to get them to communicate to one another. One of them runs ...
FB API parameter error: The parameter ad_reached_countries is required
|php|laravel|facebook-graph-api|facebook-php-sdk|facebook-ads-api|
Even in 2024 in Angular Material v.17, there is still no ability to get the selected option in `mat-select-trigger`. Also if you use `someMethodWithArrayFindInside()` in your HTML template, you will get in trouble with performance leaks, because you can use methods in the template only under `onPush` strategy. Othe...
I'm developing a personal project using Ionic Framework, React, and Supabase DB. I was trying to get my clothing categories from the DB and was using showLoading() and hideLoading() during query execution. The problem is that while fetching Menu the ```hideLoading()``` is not working, and the spinner spins forever. A...
Discord.js not playing sound
|javascript|discord|discord.js|
Make sure you are using the right project name. The error can be misleading if there is any typo there. It will not tell you "You have no access to this Project ID" but instead show you the same error message as you got. Browsing the resource on the GCloud Console helps to identify the right Project ID.
The binding between the incoming request and method is not working as you expect. Change your method to be more explicit about the incoming parameters. Note that I have defined a `record` to encapsulate the your request parameters. ``` [HttpPost] public IActionResult NextTextFromChoice([FromBody] NextChoiceRequest...
{"Voters":[{"Id":10008173,"DisplayName":"David Maze"},{"Id":7508700,"DisplayName":"David Buck"},{"Id":9214357,"DisplayName":"Zephyr"}],"SiteSpecificCloseReasonIds":[18]}
Requirements (reverse engineered from the question): - the body of the loop knows which iteration it is for self and all parents - the number of loops is between 0 and at least hundreds - memory allocation isn't a problem, i.e., no attempt at limiting it via compartmentalization is required - manual terminati...
This is the expected behaviour. If you look at `Surface`'s source code below, you can see that it leverages `CompositionLocalProvider` with `LocalContentColor` set to `contentColor` (content color derives from color parameter). This propagates color changes to the composable function proved through the `content` par...
|c#|json|list|json.net|
What is happening here? ` case '/front': return MaterialPageRoute(builder: (_) => FrontPage()); ` What does the (_) mean? It should be a build context parameter value? I have searched for Flutter, Dart explanation of the '(_)' usage but cannot find any.
Flutter Dart Syntax
|flutter|dart|syntax|
null
In Visual Studio, if I create a new project using the "Azure Functions" template, the JSON serialization used by that function will be different depending on which version of the template I use. I'm wondering how can I tell which JSON serialization will be used, solely from looking at the code/project. **Minimal com...
null
One possible option to *simulate a bit* what you're looking for is to use the [Cartodb Position][1] as a primary basemap, then add a [`WmsTileLayer`][2] (*like the topo layer provided by [NGI][3] service*) : ```py m = folium.Map( location=[51.026, 4.476] zoom_start=9, tiles="cartodb positron", ) folium.Wms...
Im making a simple plant growing game in the CMU CS acedemy thing and I can't figure out how to make this work. If I click up it makes it work as usual one time but does nothing whenever i click up again. Code: ``` app.background = 'skyBlue' import time def increaseHeight(height): Rect(225, 0, 120, 25...
I have written this code to fine-tune gpt2 on a dataset imported from HuggingFace: from transformers import Trainer, TrainingArguments, GPT2LMHeadModel, GPT2Tokenizer model_name = "gpt2" tokenizer = GPT2Tokenizer.from_pretrained(model_name) model = GPT2LMHeadModel.from_pretrained(model_name) ...
Can't resolve KeyError in Pandas
|machine-learning|gpt-2|fine-tuning|
null
I'm experimenting with running Gradient Descent (GD) on polynomials of some low degree - say 3 - with *n* variables, on a domain constrained by a hypercube [-1,1]^*n*. I want to compare the termination point of GD with the actual KKT point calculated with Sympy. For example, I have a Sympy expression with 3 variable...
Best way of finding KKT points for a Sympy polynomial
|python|sympy|mathematical-optimization|symbolic-math|gradient-descent|
Your main method looks fine. 1) Probably your .class file does not correspond to your .java file. I would try to clean up my project (if I was using an IDE and getting this). That is: delete the .class file, regenerate it from the .java file. 2) It seems you're not running ImageFile but some other class, eve...
null
I have an HTML table with the following structure: ``` <table> <thead>..</thead> <tbody> <tr> <td>some</td> <td>content</td> <td>etc</td> </tr> <tr class="certain"> <td><div class="that-one"></div>some</td> <td>content</td> <td>etc</td> </tr> several other rows... <tbody> </tabl...
null
> My problem is that when it launches the first new terminal that new terminal becomes the "active" terminal and it does not come back to the original script to finish the loop and launch the other terminals. Is there a way to release the new terminal and finish working through the loop to launch the other terminals? ...
{"Voters":[{"Id":3074564,"DisplayName":"Mofi"},{"Id":6464308,"DisplayName":"Laurenz Albe"},{"Id":9214357,"DisplayName":"Zephyr"}],"SiteSpecificCloseReasonIds":[18]}
*Linux 6.1. PHP 8.2.7. KDE Plasma 5.x. X11.* I've long had a very annoying issue with my PHP CLI scripts which keeps coming up and causing problems. I've now finally made a minimal test case and hope that this can be solved once and for all. If you do these three things: 1. Register a handler function for the ...
I am trying to write a small jit compiler. For that, I need to somehow load new code into memory and then execute it. Given the output of the compiler for a function that simply adds the 2nd and 3rd argument ```{asm} push %rbp mov %rsp, %rbp sub $44, %rsp movl %esi, -4(%rbp) movl %edx, -8(%rbp) # return a...
CS50 - C -problemset 2 - substitution - output not valid ASCII text
|cs50|substitution|
null
I using the following Antlr4 PLSQL grammar files: https://github.com/antlr/grammars-v4/tree/master/sql/plsql. From here I downloaded as follows: ``` wget https://github.com/antlr/grammars-v4/blob/master/sql/plsql/Python3/PlSqlLexerBase.py wget https://github.com/antlr/grammars-v4/blob/master/sql/plsql/Python...
Load function written in amd64 assembly into memory and call it
|c|assembly|compiler-construction|jit|
{"Voters":[{"Id":6243352,"DisplayName":"ggorlen"},{"Id":20292589,"DisplayName":"Yaroslavm"},{"Id":9214357,"DisplayName":"Zephyr"}],"SiteSpecificCloseReasonIds":[13]}
This is one application to this question. For example, find the bar cutting combinations of 3 bar lengths. So that the waste should not be longer than 1' (2.5 cm) after cutting in the 20' (50 cm) length rebar. So, I used three nested loops, because there are three bar cuts. If I have 50 bar cuts, then I will use 50 ...
With one Subscriber, an async list showing all items from Observable, what is the most efficient way to temporarily filter results based on user provided search criteria as a `string`? The component imports `TokenService` and the template subscribes to `tokens`: `tokenService.tokens | async` ```javascript // ./t...
How should I filter Observables the "Right Way" with RxJs in Angular 17?
|javascript|angular|ionic-framework|
null
I am using django framework and i will get the value error while i use razorpay payment gateway [enter image description here](https://i.stack.imgur.com/OOUbg.png) **This iS models ** ``` class Payment(models.Model): user = models.ForeignKey(User,on_delete=models.CASCADE) amount = models.FloatField(...
i am geting value error while get cust id value from passing query in link which is in checkout file . I am using razorpay payment-gateway
|python|django|payment-gateway|
null
for me my docer server was running on 0.0.0.0 so used that instead of the localhost.
Your output: ```lang-none this is thread 1 this is thread 2 main exists thread 2 exists thread 1 exists thread 1 exists ``` Before I see that *"it prints "thread 1 exists" twice."*, I see that it prints after "main exists": This behavior can lead to unpredictable results. -- First, you should array y...
I have a elastic search query that looks like this: _search{ "aggs": { "bodyTypeMinPrice": { "terms": { "field": "specification.bodyType" }, "aggs": { "highest_price": { "max": { "field": "specification.pric...
Convert elastic search query to nest AggregationDictionary
|c#|elasticsearch|nest|
null
[MacVim](https://macvim.org/) is a macOS application with a file open dialog that calls [NSOpenPanel](https://developer.apple.com/documentation/appkit/nsopenpanel) with a simple view to show hidden files (see [MMAppController.m's fileOpen method](https://github.com/macvim-dev/macvim/blob/master/src/MacVim/MMAppControll...
How can I tell NSOpenPanel to respect the ⌘A (select all items) key binding?
|objective-c|cocoa|macvim|
I have the following table that has 8 columns of IDs that I will be joining to my DIM table. The table has 100K+ rows of IDs. Is there a more efficient way to join the IDs to my DIM table rather than using my code provided? | ID1 | ID2 | ID3 | ID4 | ... | ID8 | |----: |------:| -----:|-----:|-----:| -----:| |...
Antlr4 python runtime error after generating from grammar
|python|antlr4|
What you are looking for is some global state, that is maintained across multiple pages. For this example I will use react's context API, if this does not fit your use-case you can find some other state management libraries. First you would need to crate a global context, with one global state in your form provider ...
Try to set `NO` for `pushViewController:animated:`, in another word, use `pushViewController:vc animated:NO` instead. I Guess if we set YES for `animated:`, in order to show the animation of current VC dismissing, RandomView will be added again. And after the animation ends,RandomView will be removed. That could expl...
I am using Apps Script to run multiple find and replace functions but it doesn't seem very efficient to do it this way: First Function looks like this: function findAndReplace1() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('YouTube'); var range = sheet.getRange('A2:D');...
Can't change a variable in CMU CS academy
|variables|new-operator|
null
How to change the link structure of any blog post that is shared on any social media platform. This is a News website designed on WordPress Platform. The problem specifically arises when any blogpost written in telugu is shared on Whatsapp. The link structure after sharing is showing up something similar to "%0%0%0%0%8...
You can add on top of the CMakeLists: macro(set name) message(STATUS "defining ${name}") _set(${name} ${ARGV}) endmacro() set(a b) and print `CMAKE_CURRENT_LIST_*` variables.
Check the [source][1]: ```python try: makedirs(head, exist_ok=exist_ok) except FileExistsError: # Defeats race condition when another thread created the path pass ``` So no exception in case of someone else creating the same path. [1]: https://github.com/python/cpython/blob/8da83f3386da6036...
I experience the same on Jenkins v2.425 with email extension v2.105. Not a solution but maybe a temporary fix is to deactivate the authentication of your SMTP server and then remove the credentials.
I am trying to get messages from a thread using the chat_gpt_sdk flutter package. I am failing at a seemingly very simple step. I must be missing something fundamental and it's driving me nuts. Here is a piece of my code: ``` final runRequest = CreateRun(assistantId: assistantID); runResult = await glob...
I have an esp32 and i wish to use it to drive a HC-SR04 sonar module. I use interrupts to get information from sensors,then I use a queue to pass the data to a freertos task to output it. At first, it work and output the correct data, but after few second, it report an error and reboot. Here is the error: Gur...
Encountering Core panic'ed when trying to use FreeRTOS queue in esp32
|c++|esp32|freertos|
null
So I'm trying to deploy an application to Google App Engine from Github actions and I'm getting this error message: ```Failed to create cloud build: invalid bucket "<PROJECT_NUMBER>.cloudbuild-logs.googleusercontent.com"; default Cloud Build service account or user-specified service account does not have access to ...