instruction
stringlengths
0
30k
Lazy loading of dependent relationship in SwiftData
|ios|swiftui|swift-data|swift-data-relationship|
{"Voters":[{"Id":2422778,"DisplayName":"Mike Szyndel"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":16217248,"DisplayName":"CPlus"}],"SiteSpecificCloseReasonIds":[11]}
{"Voters":[{"Id":596285,"DisplayName":"BMitch"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":16217248,"DisplayName":"CPlus"}]}
I'm new in Qwik, I want to make a full stack web application (Real time chat application), The problem is I do not know how to add MongoDB or MySQL, Firebase. I try to make express server, but is there any way? anyone can help me please Thank you in advance
How to add MongoDB in Qwik?
|qwik|qwikjs|
null
The problem here lies in parsing the data:-- to resolve:-- 1. `npm install body-parser` 2. now require it through express,by `{ const bodyParser = require('body-parser') }` 3. and then `{ app.use(bodyParser.json()) }` The undefined will be removed now and you can get the desired change.
null
The problem here lies in parsing the data. Do this: 1. `npm install body-parser` 2. Now require it through express with `{ const bodyParser = require('body-parser') }` 3. and then `{ app.use(bodyParser.json()) }` The undefined will be removed now and you can get the desired change.
{"Voters":[{"Id":11002,"DisplayName":"tgdavies"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":16217248,"DisplayName":"CPlus"}],"SiteSpecificCloseReasonIds":[11]}
{"Voters":[{"Id":573032,"DisplayName":"Roman C"},{"Id":466862,"DisplayName":"Mark Rotteveel"},{"Id":16217248,"DisplayName":"CPlus"}]}
{"Voters":[{"Id":-1,"DisplayName":"Community"}]}
{"Voters":[{"Id":2954547,"DisplayName":"shadowtalker"},{"Id":22180364,"DisplayName":"Jan"},{"Id":16217248,"DisplayName":"CPlus"}]}
{"Voters":[{"Id":2954547,"DisplayName":"shadowtalker"},{"Id":22180364,"DisplayName":"Jan"},{"Id":16217248,"DisplayName":"CPlus"}],"SiteSpecificCloseReasonIds":[]}
here, i tried a few using IB_insync on github, ibapi is a bit of trouble for me still. [https://github.com/cosmoarunn/ib_insync_examples][1] [1]: https://github.com/cosmoarunn/ib_insync_examples
The shape is symmetrical about the y axis, so you can start at x = 0 and sum the rectanglar areas 2(exp(-x^2) - x^2)dx, incrementing x by dx until exp(-x^2) <= x^2. Choose dx to be small enough to give you the accuracy you need.
|java|spring|spring-boot|intellij-idea|dependencies|
null
Let's say we have the following SharePoint working URL: https://mywebsite.sharepoint.com/_layouts/15/Test.aspx The following code works for determining if the URL works or not unless the user is authenticated with Azure AD access token var request = NetHelper.CreateWebRequest(url, ...
I ended up installing C++ Desktop development kit *from visual studio installer*, which was a hard decision for me. I wanted to manage everything from inside winget, but I guess that's not viable, as long as you are using Windows. Plus, you shouldn't install Rust(MSVC) package for rust because packages like rustfmt ...
The double dollar sign `$$` is incorrectly treathed as escape char. Try to use this instead: `^https?://(.*)(:[0-9]+)?\$`
I also try create PowerShell function for rename AppPool with reconfiguring Applications. I thing this procedure correctly renames AppPool Original to AppPool New: 1. Check if AppPool Original and AppPool New exist. AppPool Original must exist. AppPool New must not exist. 2. Make a list of Apps that are associat...
In the folder, view-->Hidden items.This answer for windows [enter image description here][1] [1]: https://i.stack.imgur.com/U28Hj.png
This question is perhaps in an uncanny valley between CrossValidated and StackOverflow, as I'm trying to understand the methodology of functions in an R package, in the context of executing them properly. The data is gene expression; with thousands of variables. Outcome is a binary variable. I have managed to ge...
I came across this problem on the internet of c language. The question was that will this code compile successfully compile or will return an error. ``` #include <stdio.h> int main(void) { int first = 10; int second = 20; int third = 30; { int third = second - first; prin...
C programming question (will this code give an error)
|c|
null
I have a list of dfs: my_list <- list(structure(list(col1 = c("v1", "v2", "v3", "V2", "V1"), col2 = c("wood", NA, "water", NA, "water"), col3 = c("cup", NA, "fork", NA, NA), col4 = c(NA, "pear", "banana", NA, "apple")), class = "data.frame", row.names = c(NA, -5L)), structure(list(col1 = c("v1", "v2"), col2 = c(...
Replace NA in list of dfs in certain columns and under certain conditions
|r|list|mutate|
I get error on site: Error: local variable 'bramka' referenced before assignment Code: def payu(orderid, action): try: # Check if 'payment' is part of the 'action' parameter if 'persondata' in action: if request.method == 'GET': # Construct the file path based on the...
I don't think you can do penalized regression directly in the `rms` package, but you could fit a penalized cox model separately, and then use the coefficients from that as the starting point in the `cph` function: library(survival) library(rms) library(penalized) data(lung) penalized.mo...
I have a table which has two column rID, SequenceNo values will be something like | rid | seqno | | -------- | ------| | r1 | 1 | | r2 | 2 | | r3 | 3 | | r4 | 4 | | r5 | 5 | Please note above is just an example there can N no of rows. Now if we get a request...
I am trying to reproduce `dimo-labling` [git repo][1] for Web-based UI of 6D pose annotation tool. I get the following error: ``` (dimo-labeling) mona@ada:~/dimo-labeling/frontend$ ng serve Workspace extension with invalid name (defaultProject) found. Option "browserTarget" is deprecated: Use 'buildTarget' ins...
Please tell me why in this code: ``` function print() { console.log("1"); } console.log("2"); async function foo() { console.log("3"); await print(); console.log("4"); } foo(); console.log(5); ``` **Output is: 2 3 1 5 4** **But not: 2 3 1 4 5** What's reason? see above ...
Async await function result in js
|javascript|async-await|event-loop|
null
Brand new to programming. Following a tutorial on C, where the creator uses these 3 commands in the terminal: <br> code hello.c make hello ./hello The `make hello` command doesn't work on my end for some reason. Giving me this error instead: make : The term 'make' is not recogni...
Error: local variable 'bramka' referenced before assignment
|mysql|ubuntu|vps|
null
{"Voters":[{"Id":182668,"DisplayName":"Pointy"},{"Id":1940850,"DisplayName":"karel"},{"Id":466862,"DisplayName":"Mark Rotteveel"}],"SiteSpecificCloseReasonIds":[13]}
I'm trying to switch from yarn to pnpm in my turborepo monorepo. When running lint or build I get this error: ../../node_modules/.pnpm/@types+serve-static@1.15.5/node_modules/@types/serve-static/index.d.ts:4:20 - error TS7016: Could not find a declaration file for module 'mime'. '/path-to-project/no...
pnpm firebase app "Could not find a declaration file for module 'mime'"
|typescript|express|google-cloud-functions|monorepo|pnpm|
add await in front of asyncOperation1 and asyncOperation2 i.e `await asyncOperation1(); await asyncOperation2();`
I write code for the ESP32 microcontroller. I set up a class named "dmhWebServer". This is the call to initiate my classes: An object of the dmhFS class is created and I give it to the constructor of the dmhWebServer class by reference. For my error see the last code block that I posted. The other code block could ...
Selenium won't pull hrefs of 8 or more
|python|google-chrome|selenium-webdriver|
I am struggling with the following problem, any help would be appreciated! I need to take the summation of a variable but the level of the group by dependents on a condition (see 3.), this goes beyond my knowledge of SQL. So my query should: 1. Take the summation of AMOUNT per ID and SPLIT (see f.e. ID_1, 100 + 5...
Logistic Lasso on large gene dataset specifically through the Knockoff package in R
|r|logistic-regression|large-data|lasso-regression|
The [documentation for `GHC.Read`](https://hackage.haskell.org/package/base-4.19.1.0/docs/GHC-Read.html) describes `readPrec` only by: > Proposed replacement for readsPrec using new-style parsers (GHC only). Other functions, types, etc. have no documentation at all. How do I use the supposedly more efficient parsin...
I am running a script from WebView2 to complete an online form - works great for the standard textarea using... document.getElementById('fname').value = 'SomeName'; But will not work with the bootstap editor - sooo, I moved to copy and paste (and given the data is a Word document that would be better). I have...
I was getting this error on a .NET 7 web Api controller being migrated from .NET 4.8. In the original controller there was a public void method consumed by the actions of the controller. The error was occurring in Program.cs: app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( ...
I hit the same problem when porting some parallel code from CUDA (which provides cuRand) to OpenCL a number of years ago. I found a very nice solution in the random123 library: https://github.com/DEShawResearch/random123. This library provides a number of "counter-based random number generators," which are functions ...
Why can't I use make in VS Code terminal?
null
I'm new in RabbitMQ, so I faced with some problems when configuring topic exchanges. I have two script files: **emitter.php** and **receiver.php**. The last one will be replicated with docker-compose. Emitter creates messages and sends it to randomly selected routings, and receivers has random routing keys. emitter....
php-amqplib: topic exchanges doesn't work
|php|rabbitmq|amqp|php-amqplib|
null
|php|wordpress|woocommerce|taxonomy-terms|product-variations|
I have a table with a string column that is formatted as json. I want to query my table by json. This is achievable with SQL ``` SELECT * FROM [db].[dbo].[table] WHERE JSON_VALUE(ColName, '$.jsonkey') = "value" ``` Is it possible with GraphQl and Hot Chocolate? I tried ``` public IQueryable<Class> G...
Try using Scala 2 syntax (still working in Scala 3 so far) fastparse.parse("1234", implicit p => parseAll(MyParser.int(/*using*/ p))) https://scastie.scala-lang.org/DmytroMitin/MrFZ0EhiSPeFDHd1IyBhrA fastparse.parse("1234", implicit p => parseAll(MyParser.int)) https://scastie.scala-lang.org/DmytroM...
I'm doing training where I use two projects where, project A will have the artifacts that will be used and, in project B, I will build using a deployment group. During the execution of the release pipeline, the following error appears: > Failed in getBuild with error: Error: VS800075: The project with id > 'vstfs:/...
I'm currently building a Flutter app integrated with Firebase authentication. I'm using `createUserWithEmailAndPassword` to authenticate my users, which is functioning correctly. However, I encountered an issue when attempting to reset passwords using FirebaseAuth.instance.sendPasswordResetEmail. While Firebase sen...
|flutter|firebase-authentication|
null
This is my code. It uses logic in the sense that it checks if the current number can be divisible by any number that came before it, excluding any even numbers. I hope it helps. <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> sub is_prime { my ($num)...
|python|math|error-handling|exponential|numerical-integration|
Since the last 3-monthly renewal of my **Let's Encrypt** certificate (happened 3 days ago), **Android devices** with OS version earlier than 7.1.1 (*Android API 25*), are not able to connect to my servers anymore. The reason seems to be that the 3-year cross-sign agreement to bridge the new *Let's Encrypt*'s "**ISRG...
I created a web app from scratch using the default .Net template for MVC (ASP.NET Core web app) using Auth with "Individual Accounts" option and SDK 8, and my problem is I'm not able to authenticate a user, at least `SignInManager.IsSignedIn(User)` always returns false. `Program.cs`: var builder = WebApplicat...
|python|math|sympy|symbolic-integration|
**Solution:** Because in django-registration there are multiple `RegistrationView`: - backends\activation\views.py - backends\one_step\views.py - views.py Being that that the `RegistrationView` in \backends inherit from the views.py in the root. The form_class attribute is defined in the root view. So ...
Can you ping it with `curl localhost:9200` in the terminal? Try to use `http://localhost:9200` instead as the URI, I think I've had this issue before. This here is my setup https://www.zenitk.com/es-docker-compose-up
I'm trying to build and service in between resources with Spring Security and Spring Boot. My map is following: LandingPage (VM1) -> API Service (SpringApp) -> Resource service with Data (VM_N) I'm facing the CORS issue in the browser while API calls over POSTMAN works fine. I know that POSTMAN doesn't care about...
I work on a web form project (.NET FrameWork) I have this exception ``` <!-- System.Web.HttpCompileException (0x80004005): c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\a1f84433\8a878a8d\App_Web_genericusercontrol.ascx.9c4a4a40.c8huzmqq.0.cs(180): error CS0234: The type or namespace ...
{"OriginalQuestionIds":[17667903],"Voters":[{"Id":238704,"DisplayName":"President James K. Polk"},{"Id":2530121,"DisplayName":"L Tyrone"},{"Id":466862,"DisplayName":"Mark Rotteveel"}]}
``` <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script><html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script> <link rel="...
I have a task to submit on greedy algorithms. I wrote this code but I'm not sure what the time complexity of the algorithm is. This problem called "Regtangle Covering". This is the code: ``` MinGreedyCutReg(R[]) cut[] = null while R != null endIndex = 0 for i = 0 to R.length-1 ...
Error: VS800075 when downloading artifact from another project
|azure-devops|azure-pipelines-release-pipeline|access-denied|azure-devops-deploymentgroups|
My project is to find out how much time I spend on netflix. Downloaded the history containing only Date & show name. (I don't want to request full netflix account history every time I to process it all again). I am looking for dataset of movies + duration, tv shows with list of episodes and their corresponding dura...
Netflix watch history project. Need data source (title & duration of the shows/movies) to match watch history
|analysis|netflix|
null
{"Voters":[{"Id":22180364,"DisplayName":"Jan"},{"Id":1940850,"DisplayName":"karel"},{"Id":466862,"DisplayName":"Mark Rotteveel"}],"SiteSpecificCloseReasonIds":[13]}
I am trying to get data between $booking_start_formatted and $booking_end from the database on column session_start but it selects only data below $booking_start_formatted public function store(Request $request, Utils $utils) { $request->validate([ "user_id" => "required|int", ...
Laravel whereBetween two timestamps Not working
|laravel|timestamp|php-carbon|
I get error on site: Error: local variable 'bramka' referenced before assignment def payu(orderid, action): try: # Check if 'payment' is part of the 'action' parameter if 'persondata' in action: if request.method == 'GET': # Construct the file path based on the pr...
{"Voters":[{"Id":2422778,"DisplayName":"Mike Szyndel"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":466862,"DisplayName":"Mark Rotteveel"}],"SiteSpecificCloseReasonIds":[13]}
You can subtract the normalized date to get the time as timedelta, then [`cut`]() and [`groupby`](): ``` # ensure datetime df['Date'] = pd.to_datetime(df['Date']) # form bins, split groups bins = ['0', '12h', '18h', '24h'] labels = [f'{bins[i]}-{bins[i+1]}' for i in range(len(bins)-1)] out = dict(list(df.group...
I'm getting below error from Revalidate Itinerary API. { "status": "Incomplete", "type": "Application", "errorCode": "ERR.2SG.SERVICE_VERSION_DEPRECATED", "timeStamp": "2024-03-26T12:21:06.387Z", "message": "Requested service STPS_SHOPFLIGHTSREVALIDATEAPI version v4.3.0 is deprecated" } I did tr...
Sabre Unable to use "Revalidate Itinerary" V4 API