instruction
stringlengths
0
30k
|azure|ffmpeg|merge|cloud|scale|
null
I have figure it out the problem for me. It was related to a **not mapped property** inside the derived entity (and could also occurs when the entire **derived class is not mapped**). I described it better in [this][1] answer. [1]: https://stackoverflow.com/a/36756830/890890
null
did I understand correctly? That you receive data from BE but they are not rendered in the template? Which `ChangeDetection` Strategy do you use before initializing the class? If you use `ChangeDetectionStrategy.OnPush`, delete it or use detectChanges() after you receive the data
{"Voters":[{"Id":20860,"DisplayName":"Bill Karwin","BindingReason":{"GoldTagBadge":"mysql"}}]}
Friends convinced me to use OpenAPI to document the REST API for my embedded web server project. Now I struck at the point to generate/export javascript code that I can integrate into my embedded server to deliver it to clients. Until now I could not find a tool that can generate native javascript modules, that I can...
I have figured it out by first differentiating the paymentTypeId for sell and purchase, then joining them all together and calculating the values, here is my result: ```sql WITH SellTotals AS ( SELECT customerId, baseCurrencyId, SUM(CASE WHEN paymentTypeId = 1 THEN totalPrice ELSE 0...
I have cached something with tags: Cache::tags(['mytag'])->put('topmenu', $dataMenus); Was just reading the docs, and i can check the cache for a key: if(Cache::has('topmenu')) { // .... } But how do I check the key AND the tags? I would think like this: if(Cache::tags(['mytag']...
Laravel: check if cache has key with thag
|laravel|caching|tags|exists|
I am trying to implement an abstract interface in C using function pointers inside a struct. Something like the following ``` typedef int (*fn_t)(int); typedef struct { int x; const fn_t fnp; }struct_t; __attribute__((optimize("O0"))) int square(int num) { return num * num; } static s...
Despite your assurance that you have the requisite brackets, you don't. Your `loop` function needs a closing `}`. Employing consistent indentation is not just about making code _pretty._ It makes it easier to understand and debug. Keep in mind also that [it's always your fault.](https://blog.codinghorror.com/the-...
Here is the log insight query snippet for filtering error EC2 API calls from VPC CNI: ``` fields @timestamp, userAgent, eventName | filter not isempty(errorCode) | filter eventSource like "ec2.amazonaws.com" | filter userAgent like "amazon-vpc-cni" | sort @timestamp desc | limit 100 ``` I've noticed that t...
**tldr;** [CTAD](https://en.cppreference.com/w/cpp/language/class_template_argument_deduction) from c++17 can be used to deduce the two template parameters. --- > I have to pass two template arguments when creating an object of the basic_istream class since the default argument is not declared in the basic_istr...
Apple's message: ``` ITMS-91053: Missing API declaration - Your app’s code in the “{app name}” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryFileTimestamp. While no action is required at this time, starting May 1, 2024, when you upload a n...
All you need to do is add the style parameter as I have done below: ``` import random as rd import seaborn as sns import pandas as pd import matplotlib.pyplot as plt #Make some sample data episode=list(range(200)) season=[] for k in range(20): for i in range(10): season.append(k) rating=[] ...
null
null
I am making a serverless function using node. `req.file` always appears to be undefined for my image upload function. I have tried testing the API both with Postman and by making an HTML form for uploading the file. This is my auth_routes.ts file where I define Multer and the route for the upload endpoint: `...
Multer unable to process files
|express|file-upload|multer|
null
Not having `ninja.build` present is a symptom of ninja not being built, which could be caused by several things. For me this happened after I ran the commands: ``` git clone https://github.com/microsoft/vcpkg cd vcpkg .\bootstrap-vcpkg.bat .\vcpkg install openblas:x64-windows ``` ``` Computing installation...
Isn't the Irix Xe an integrated GPU? I don't think you'd get much of it even it was supported. I'm pretty sure it's not supported, so, unfortunately `--cpu` is your only option. Otherwise I think in order to make it work on GPU, your GPU should be either: - Supported Nvidia GPU - Supported Radeon GPU see supported...
I'm getting a crash in the preview canvas only - runs fine in the simulator. Fatal error in ModelContainer.swift at line 144 - failed to find a currently active container for Book. Running Xcode 15.3, and iOS 17.4. **Main** ``` import SwiftUI import SwiftData @main struct SwiftDataSandboxApp: App { ...
Constant function pointer optimization
|c|assembly|gcc|optimization|function-pointers|
null
Turning the comment into an answer since it seems to work: Looking at the [gcc docs](https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#Generic-Operand-Modifiers) for inline asm, we see there is a modifier that can be used for "i". Adding `c` will: > Require a constant operand and print the constant expression...
This is my code public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\\xyz"); ChromeOptions options = new ChromeOptions(); options.setBinary("C:\\zyx"); WebDriver driver = new ChromeDriver(options); driver.manage().window().ma...
In your CSS file, as a barebones solution, <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-css --> p{ display: inline; } <!-- end snippet --> It's good practice to not use <p> in this scenario but <label> as others as said, but this is the most bareb...
you need to pass in the event if you wish to preventDefault. html: <a href="#" onclick="runFunction(event)">Hit</a> script: function runFunction (event) { event.preventDefault(); event.stopPropagation(); }
We have an Ionic Capacitor app using React (@ionic/react: "6.3.5", react: "17.0.2", react-scripts: "4.0.2") and build apps using a CircleCI pipeline with this Docker image for Android: `cimg/android:2023.03-browsers`. All of our Jest tests are passing when I run them locally on my computer but several are failing ...
Jest Timers not working while running in CircleCI Android App Build
|android|jestjs|circleci|
In your entry point file, import `lazy` and `Suspense` from `preact/compat`: ```javascript import { h, Component } from 'preact'; import { lazy, Suspense } from 'preact/compat'; import Router from 'preact-router'; // Dynamically import Home and Browse components const Home = lazy(() => import('./routes/Home')...
The code is working fine as I tried it on the local server meilisearch. The products are getting indexed and the value is being shown. But using the same process and code I am unable to get indexes on the Meilisearch Cloud. I have followed the below documentation:- 1. Medusa-Meilisearch offical documentation -...
I am using latest version of Quarkus with Kotlin and Qute. I am tying to run my index page and when i call the page in browser i am keetp getting white page with io.quarkus.qute.runtime.TemplateProducer$InjectableTemplate$InjectableTemplateInstanceImpl@581c8266 dependencies { implementation("io.quar...
Quarkus Quit Kotlin index page is displaying io.quarkus.qute.runtime.TemplateProducer$InjectableTemplate$InjectableTemplateInstanceImp
|kotlin|quarkus|
|php|laravel|laravel-10|laravel-jetstream|
I was writeing this simple arduino code and I got this error. I can clearly see that there are the appropriate brackets in place. ``` void setup() { // put your setup code here, to run once: pinMode(A7, OUTPUT);//sfx pinMode(A5, INPUT)pinMode(A6, OUTPUT);//flash ; //Button } void loop() { ...
|flutter|splash-screen|
Some SO users may think that this question is "opinion-based" and try to close it. I think this is a valid question, as proven by the fact that the other similar post you linked, [Relative imports for the billionth time](https://stackoverflow.com/questions/14132789/relative-imports-for-the-billionth-time), addresses th...
Already answered but just to summarize what worked for me. Just before you fork processes, close the db connections. This will make the connection object being copied to each child process closed, and when any request is made on the object django will open the connection again. db.connections.close_all()
The exact project works in localhost, but not when deployed to Firebase. With postman, when I send post request to /new-sub in localhost with a body, the bot messages to a specific channel in a specific server. When I send the same request to the live url, I get 404 instead. Why does it behave differently when ...
Node.js Discord bot works in localhost, but not when deployed to firebase hosting
|javascript|node.js|discord.js|firebase-hosting|
A few things to fix : (A) You need to change the form tag of your HTML form from ``` <form action="mailto:mymail@gmail.com" method="post" enctype="text/plain"> ``` to ``` <form action="process_form.php" method="post"> ``` (B) and change this line in PHP from ``` $email_headers = "From: $name <$email>...
SwiftData causes crash in preview, failed to find currently active container for
|ios|swift|xcode|swift-data|ios17|
null
{"Voters":[{"Id":20259506,"DisplayName":"Chamalka Jayashan"}]}
[QStringList](https://doc.qt.io/qt-6/qstringlist.html#initializing) [KFileMetaData](https://invent.kde.org/johnfreeman/kfilemetadata/-/blob/master/src/extractors/ffmpegextractor.cpp?ref_type=heads#L79) is declared in similar fashion but fails [Job Failure on line](https://invent.kde.org/johnfreeman/kfilemetadata/...
QStringList initialization does not perform as documentation describes
|c++|qt6|kde-plasma|
null
I use Verilator to compile and simulate my design. The whole compilation and simulation takes forever. Since I am testing a feature, I only change one module in the design every time. I want know if there is a way to only compile the changed file instead of the entire design every time. For e.g. if my hierarchy is t...
How to compile only the changed files in Verilator?
|compilation|verilog|register-transfer-level|verilator|
null
If two child nodes has same parent node in AWS GLUE. How to set the priority of execution of specific child node. For instances AWS GLUE job has three nodes. Node A is parent of child node B and child node C. In this case how to configure child node C will execute first. Is there any ways please suggest.
AWS GLUE child node execution order of same level
|amazon-web-services|aws-glue|aws-glue-connection|
null
- Using `TableRange2.Rows(5)` to locate the the header is not reliable. It depends on how many page fields on pvt table. - `TableRange1` represents the range containing the entire PivotTable range, but doesn't include page fields. _Microsoft documentation:_ > [PivotTable.TableRange1 property (Excel)](https://l...
How to align two paragraph in LateX
|latex|
null
I'm trying to get swagger to run in my spring boot project. I'm currently using the spring verion `3.1.9`. I looked up so many guides that told me to just add `implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0"` to my `build.gradle` file and then everything works! Wrong! It doesn't. I get this Whi...
You see this : `len(nums[start:end + 1])` this is nothing but `end - start + 1` In other words you are splicing the `nums` repeatedly which is not necessary. You could write it as : result = min(end - start + 1, result)
i use bloc for state management to fetch data from api ``` FutureOr<void> fetchAllDrinksList( GetAllDrinksList event, Emitter<HomeState> emit) async { await apiRepository.getAllDrinks().then((value) { emit(state.copyWith( status: HomeStatus.success, drinksList: value, ...
Nothing prevents you from specifying a Host/IP in the path or query portions of the url, if it is actually an input value that the server will use in a data query. But, if you are trying to tailor the server to host multiple sites on a single IP and differentiate them by host names, then use the HTTP `Host` header i...
import pandas as pd import netCDF4 as nc for day_num in range(1, 2): if day_num < 10: file_path = r'F:\desktop\datebase\Carbon-emission-data\AK\Vulcan.v3.AK.hourly.1km.total.mn.2010.d00' + str( day_num) + '.nc4' else: file_path = r'F:\desktop\da...
you can add ADO repos either from the Edit page, or from the Management page in Data Factory, if you haven't done it at the creation of the Data Factory. Please see below: ![Edit page][1] ![Management page][2] [1]: https://i.stack.imgur.com/1S3E7.png [2]: https://i.stack.imgur.com/vwA0v.png
How can I add automatically generated IDs to guests? For example, as shown in the picture below, I have two guests, the first one with ID=0 and the second one with ID=1. I want to remove the numbered IDs and add generated IDs instead. My function: fun saveToFirebase( guest: MutableMap<String, Any>, ...
Try bellow solution, it worked with me. My version: - Apache Directory Studio - Version: 2.0.0.v20210717-M17 - MacOS 14.4, chip Apple M1 pro. Solution: - Install Homebrew for the Intel (x86_64) architecture, and then use it to install the x86_64 version of OpenJDK 11 - Configuring Apache Directory S...
{"Voters":[{"Id":68587,"DisplayName":"John Kugelman"},{"Id":16217248,"DisplayName":"CPlus"},{"Id":9473764,"DisplayName":"Nick"}],"SiteSpecificCloseReasonIds":[18]}
I added dark mode to my Svelte + Tailwind website. I did this by first checking for the user's preferred (system default) theme, but also added a button to change it anytime. I essentially just update the local storage to either store dark or light and then give or remove the class "dark" from the root html element. I ...
I want to implement an actor which uses "legacy" components which are classes using a dispatch queue for calling callbacks. These "legacy" components are actually classes from Apples NWNetwork framework. These classes require a dispatch queue and callback functions to be specified. The callback functions will be ca...
> Can a tentative definition use the storage class specifier _Thread_local? ### In C17 **Yes, provided that the declaration in question also includes `static`.** The definition of "tentative definition" is: > A declaration of an identifier for an object that has file scope without an initializer, and withou...
in a Fiori Elements frontend (FPM) I need to perform a CAP bound action on several entities (selected from a table) but I am experiencing some issues. TL;DR I can't find a proper way to pass a collection to my bound action modeled as such: entity MyEntity as projection on db.myTable actions { a...
I'm working on a chatbot, that will later be used and tested in a psychological experiment. This is my first real programming project. I'm using the OpenAI API to provide the language model and Gradio for the UI. I want to add functionality, that would allow me export the conversations of each user, so that me and my t...
Gradio chatbot: how to export individual conversation histories?
|python|authentication|chatbot|gradio|
null
You need to add the correct repository to the `build.gradle.kts` file. The ones in `settings.gradle.kts` `pluginManagement` are for the resolution of plugins. ```kt repositories { maven { setUrl("https://jitpack.io") } } ```
use the language code for your state. for ex: void changeLanguage(Locale locale) { currentLocale = locale; emit(LanguageChanged(locale.languageCode)); } sealed class LocalizationState extends Equatable { const LocalizationState(); } final class LanguageChanged exte...
I've been using Bitbucket for a few months now. I was asked to restrict developers from merging with develop branch unless they're the lead developers. I created a branch restriction in develop branch. This works fine when feature branch cannot merge with develop branch without the lead developers approving and mer...
Merge Request in Bitbucket: Possible to exempt a specific branch to ask for Merge Request?
|git|merge|bitbucket|
You can use `find` to locate the desired files: ```shell $ find . -path '*/[Ll]ivewire/*' -name '*[Ss]tring1*' ./app/Livewire/String1s.php ./app/Livewire/EditString1.php ./app/Livewire/String1Table.php ./resources/views/livewire/string1-table.blade.php ./resources/views/livewire/edit-string1.blade.php ./resourc...
i use bloc for state management to fetch data from api ``` FutureOr<void> fetchAllDrinksList( GetAllDrinksList event, Emitter<HomeState> emit) async { await apiRepository.getAllDrinks().then((value) { emit(state.copyWith( status: HomeStatus.success, drinksList: value, ...
You need to read values from inputs at the button press time, not in `onCreate()`. So move `input.getEditText().getText().toString()` code under `onClick()` like: ``` signupbtn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String username = uname.getEditText().getT...
This feature is hidden under **Advanced Settings** in Android Studio. Please refer this comment from JetBrain Team https://youtrack.jetbrains.com/issue/KTIJ-27158/Import-is-failing-after-creation-of-new-module-if-project-dont-use-versionCatalog#focus=Comments-27-8195193.0-0
I need help with DataLife Engine. I've created a website in three languages. However, when I'm on the contact page and change the language, I'm redirected to the main page. I want to stay on the same page when I change the language. I'm currently using these .htaccess rules: ```apache RewriteRule ^eng/(/?)+$ index....
Preventing redirect when changing language in DataLife engine
{"Voters":[{"Id":5389997,"DisplayName":"Shadow"},{"Id":2395282,"DisplayName":"vimuth"},{"Id":10138734,"DisplayName":"Akina"}]}
{"Voters":[{"Id":1427878,"DisplayName":"CBroe"},{"Id":2320961,"DisplayName":"Nic3500"},{"Id":633440,"DisplayName":"Karl Hill"}]}