instruction
stringlengths
0
30k
null
In the below program, composite types(`NodeList` & `[]*Node`) doesn't need explicit conversion, for assignability: package main type ( NodeList []*Node ) type Node struct { data int next *Node } func main() { var listOne NodeList var listTw...
|vuejs3|phaser-framework|spine.js|phaserjs|
I have a collection of documents which are readings from a group of sensors. The documents have the date of the reading, the reading itself, and the id of the sensor. I need to be able to return some of these documents in a date range in order to graph them in a user facing program. I know how to get documents in a...
MongoDB get limited, evenly spaced documents within date range
|mongodb|aggregation-framework|pymongo|
I am now learning software engineering in a bootcamp hence I have no real world experience in software and web development. I ran the ff `$: cat 7-dump.sql | mysql -uroot -p` To check if all tables are created, I ran ```echo "quit" | HBNB_MYSQL_USER=hbnb_dev HBNB_MYSQL_PWD=hbnb_dev_pwd HBNB_MYSQL_HOST=localhost...
I am currently doing some test & that includes file upload. So for that testing I am adding some files in under <br> `test/assets/some_1MB_image.jpeg` <br> `test/assets/some_5MB_video.mp4`<br> `test/assets/some_3MB_song.mp3`<br> Does it means while releasing my app it will increase the size? <br> Let's say previo...
I had the same issue. The solution is to use `build-args` instead of `secrets` in the build step. 1. In your `Dockerfile` add the following. That will take the buld args and set them as env variables in the build context ``` ARG NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN ARG NEXT_PUBLIC_FIREBASE_PROJECT_ID ARG NEXT_PUBLIC...
Edit: I found that your coding is working well linux. Also With your experiments, We may have to conclude that the problem occurs in windows Tooltip module's official document says`Certain options do not match great with each other, a good example is follow and delay using small x/y offsets. This can cause the tool...
Basically I am trying to code this project of this part of the video https://www.youtube.com/watch?v=jAMegKEetx4&t=338s , the project is a typing game, where words appear from left and move to the right and you have to type them out so they disappear. I'm trying to code the project in python using the turtle module and...
Initially, I registered one Entra ID application and created one **client secret** in it: ![enter image description here](https://i.imgur.com/UR7g83B.png) You need to add above service principal to Fabric workspaces giving at least **Contributor** role like this: ![enter image description here](https://i.imgur...
null
original_frames = [cv2.imread(os.path.join(original_frames_dir, filename)) for filename in sorted(os.listdir(original_frames_dir))] Traceback (most recent call last): File "d:\python\start.py", line 61, in <module> target_frames = [cv2.imread(os.path.join(target_frames_dir, filename)) for filename in sorte...
How to compile the Linux kernel with -O0 for more detailed debug?
|gcc|makefile|linux-kernel|gdb|dwarf|
Here's my problem. I'm using ASP.NET Identity in a ASP.NET Web Form project (I know, old technology). The login works fine most of the time, but one of my end users says he loses that ability once in a while. We kind of narrowed it down to it being browser/device specific. Does anyone have any idea why this might b...
ASP.NET Identity, Losing Ability to Login until Application Pool Recycles
|asp.net|asp.net-identity|
Tensorflow 2.16.1 has a bug. Please downgrade to 2.13.1: pip uninstall tensorflow pip install tensorflow==2.13.1
I am working on a C# application to enable and disable a smart card reader programmatically. I've implemented a method to retrieve the smart card reader device using WMI (Windows Management Instrumentation) and then invoke the "Enable" or "Disable" method based on the provided boolean parameter. However,its working ...
null
This code produces a (currently non-functional) login page that looks more or less the way I would like it to look (see image #1). ```python import flet as ft def main(page : ft.Page): page.title = 'Login Page' page.vertical_alignment = 'center' page.horizontal_alignment = 'center' page.add...
Page behavior in flet works when used directly in `main`, but not in a UserControl?
|python|flutter|user-interface|user-controls|flet|
null
|makefile|
3 Tables 1CALENDAR DATE TABLE with Active Single Relationship to 2Date Enquired and to 3Date Contacted 2Fact1, 3Fact2 2Fact1 Mobiles DateEnquired EnqType 3Fact2 Mobiles DateContacted 2Fact1 and 3Fact2 NOT Active Relationship Many to Many using Mobiles Help me find the Measure code Required to calcula...
Dax Many to Many Measure with Calender Date filters
|powerbi|dax|many-to-many|relationship|measure|
null
Welcome to Stack Overflow! Since this is regarding code, it would be substantially helpful if (code word for: I'll help you with the following conditions) you provide me with a minimal example of what you have, what you've tried, and what you are trying to accomplish. Please follow this last one with a small explanatio...
null
To have `np.interp` work correctly, every element must be greater than the previous in the axis, which is not the case in the original data, so we can add `df2.sort_values('p_finer', inplace=True)` to make it true, in which case that call works as expected. In order to put some lines on the graph to show where thes...
While making app for release in flutter, does it includes test folder?
|flutter|
I'm new to Python, and I'm trying to fold my code in a way that's similar to regular Visual Studio with C#. In VS, you can press <kbd>Ctrl+M</kbd>, <kbd>Ctrl+O</kbd> to fold all methods and `#regions`, and then press <kbd>Ctrl+M</kbd>, <kbd>Ctrl+P</kbd> to unfold. VS Code has a similar feature with <kbd>Ctrl+K</k...
|python|visual-studio-code|folding|
null
I have a tflite model in unity that takes input image and predicts its output. but when i exported it as apk, the model is not working as i am not getting the predicted class in output screen. Does anyone know how to run it actually. Do i need to have any android foreground services or do i need to add any extra script...
Tensorflow lite model not working on android device
|c#|android|unity-game-engine|tflite|
null
Please make sure to change the registration from builder.Services.AddTransient<IUserDao, UserDao>(); to builder.Services.AddScoped<IUserDao, UserDao>(); With this modification, your problem should be resolved.
For avoiding [X-Y problem](https://xyproblem.info/): The original question is, I want to develop a Java library in Java 21, but with support for Java 8. Then, I want to release a Java library, with 2 different Java versions, 8 and 21, with one single repository (to avoid massive code duplication) and some configu...
Pandas Dataframe Assignment
|pandas|dataframe|data-science|data-wrangling|exploratory-data-analysis|
null
I use glmatrix 3.4.0 . With position i dont have any problem. Event glmatrix last version have some support for QUAT i cant make correct way of converting from QUAT to AxisAngle or rotate mat4 ... > I know that glmatrix use radians and i have no problem to get any data > from CANNONJS Quaternion. I also try eve...
EDIT. This is a tcl tk bug in Windows. This can be seen by double clicking on the window title. ``` from tkinter import * def window_clicked(event): print("window_clicked", event.x, event.y) root = Tk() root.geometry("600x300") root.bind("<ButtonPress-1>", window_clicked) root.mainloop() ---------...
For starting up a webserver with instance launch, you can use [**user-data**][1] as below (Eg: for Amazon Linux AMI): ``` #!/bin/bash yum update -y yum install -y httpd systemctl start httpd systemctl enable httpd usermod -a -G apache ec2-user chown -R ec2-user:apache /var/www chmod 2775 /var/www find /var/...
I have a multi-colum dataframe in pandas which looks similar to this, it is also multi index: ``` Asset1 Asset2 private public classified private public classified Bank1 2 4 5 3 4 5 Bank2 6 7 ...
Summing across columns in a block of a multi column dataframe pandas
|pandas|dataframe|
>I mean the obvious error is not putting back the nodes you took. You'll have to store them and put them back when you navigate back. yes, that is correct. I also lacked understanding of how [Zippers][1] should work. But I have got more insight now. I ended up with a `parent()` method as below, that also puts bac...
I downloaded a program written in go and wanted to compile it on my Macbook M1 macOS Sonoma 14.2.1. I have tried several commands and some of the errors are: `go build -buildvcs=false ` `env GOOS=darwin GOARCH=arm64 go build` and this error gives me: /usr/local/go/pkg/tool/darwin_arm64/link: running clang fail...
I have table which create by dynamically (stored procedure returns Datatable) and create successfully but when I click click event `getTrnDetails(batchno)` then I want to color `<tr>` for show separate other row. How can I do this? Razor template: @foreach (DataRow row in opType.Rows) { sl = 1; ...
|c#|asp.net-core|.net-core|blazor|
We currently have a custom implementation of Hazelcast GridForamtation using "InitialMembershipListener" along with TCP/IP Configuration to discover Memebers in a Cluster. Recently we decided to migrate our application to the cloud, where we wanted to use the K8 AutoDiscovery provided by Hazelcast. But when we update...
NullReferenceException when Invoking Method to Enable/Disable Smart Card Reader using C#
|c#|wmi|device-manager|
null
I would like to take the user directly to the player UI when the user taps on media notification. I see that app is launched (or brought to foreground) but intent extras are null and I cannot take the user to the player screen. In MediaSessionService onCreate() I have ``` val intent = packageManager.getLaunc...
Android Media3: App launched from tapping media notification but extras from PendingIntent are not set
|android-notifications|android-mediaplayer|exoplayer|android-mediasession|android-media3|
|java|spring-boot|eclipse|configuration|compilation|
I recently upgraded my application from Laravel 10 to Laravel 11 using Laravel Shift. After the upgrade, I noticed that my private channels with Pusher are no longer authenticating. The error logs in Pusher's console are filled with "Auth info required to subscribe to private-users.2". In Laravel 11's documentation...
When you follow the tutorial but with standalone components, just do not generate the `AppRoutingModule` and ignore everything said about it. The routes are now defined in `src/app/app.routes.ts`. Take a look at the application main entry point `src/main.ts`. It bootstraps the application with the application conf...
See example. Recursive assembling expression formula from expression_tree table. ``` with -- recursive -- for PostgreSql cte as( select expression_id,oid ,concat( case when lv in('*','+','-') then concat('[',lid,']') else cast(lv as varchar) end ,ov ,case when rv in('*','+','-') ...
Telerik report designer using stored procedure return multiple data sets how to access all data sets. report shows only top dataset result Please refer below link which is for binding dataset to report, which is using ASP.NET. https://docs.telerik.com/reporting/designing-reports/connecting-to-data/data-source-com...
I've been mainly working on Angular and frontend so far and just got into the world of Java Spring to enhance my backend skills. I need to implement the WebClient to do REST calls. This is what I have so far: ...codeset/service/impl/CodesetService.java: @Component public class CodesetService { p...
If you want to reset the GTID you can run following commands STOP SLAVE SQL_THREAD; RESET MASTER; SHOW SLAVE STATUS\G; To set the multi source mysql master slave replication: https://www.svastikkka.com/2024/03/mysql-multi-source-master-slave.html
## Two good solutions - Thanks to [kamilcuk](https://stackoverflow.com/users/9072753/kamilcuk) and [konrad-rudolph](https://stackoverflow.com/users/1968/konrad-rudolph) for these. - Both of these avoid using `ls`, which is known to cause problems in parsing its output. - `dbecho` is basically echo - `isnull` test...
Here's a basic demonstration of a hot publisher in Project Reactor ```java @Test void testSimpleFlux() { Flux<Integer> intFlux = Flux.just(1, 2, 3, 4, 5) .publish() .autoConnect() .log(); intFlux.subscribeOn(Schedulers.newParallel("Thread-o...
|laravel|broadcasting|laravel-11|
In this example a SwiftUI view's identity depends on the value of its `@StateObject` member variable. I don't think this should be possible because if a view doesn’t have an explicit identity, it has a structural identity based on its type and position in the view hierarchy. In the example below the `ItemPopupView`'s i...
Why/how does a SwiftUI view's identity depend on the value of its `@StateObject` member variable?
|swiftui|core-data|
{"Voters":[{"Id":4722345,"DisplayName":"JBallin"},{"Id":157957,"DisplayName":"IMSoP"},{"Id":1213708,"DisplayName":"Nigel Ren"}]}
You should ask these type of questions on OpenAI directly now. To import AWSIoTProvider correctly from @aws-amplify/pubsub, you need to ensure that you are using the correct syntax and that the library is installed properly. Here's how you can import AWSIoTProvider correctly: ``` import { AWSIoTProvider } from ...
I'm encountering an issue while trying to scrape data using Puppeteer Cluster and write it to an Excel file using Excel4node. Here's a summary of the script's functionality: I'm using Puppeteer Cluster to scrape data from multiple URLs concurrently. For each URL, I scrape various pieces of information from the w...
Trouble with Puppeteer Cluster and Excel4node: Not all data is being written to Excel
|javascript|node.js|puppeteer|puppeteer-cluster|excel4node|
null
what is the best way to read csv data with two headers. try (CSVReader csvReader = new CSVReaderBuilder(new InputStreamReader(file.getInputStream())) .withCSVParser(new CSVParserBuilder().withSeparator(',').build()) .build()) { HeaderC...
How to compile different code for different JDK version?
|java|
|assembly|x86|linker|nasm|linker-errors|
I'm a beginner in Node and webdev, and recently build a chatbot using MERN and chatgpt-api integration. when I'm trying to send message as user to the api using my frontend. I'm getting "Failed to load resource: the server responded with a status of 422 (Unprocessable Entity)". ![Here is the screenshot of error.](htt...
`<nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-...
why is the navbar not working on android phone
|css|
null
{"Voters":[{"Id":269970,"DisplayName":"esqew"},{"Id":5053002,"DisplayName":"Jaromanda X"},{"Id":794749,"DisplayName":"gre_gor"}]}
I am using eclipse link jpa implementation with spring boot 3 and when i try to migrate to hibernate 6, application is failed at startup saying error creating bean ‘entityManagerFactory’ java heap space OutOfMemory exception. Application used to create tables and start quickly with eclipse link but with hibernate 6 ...
What is the difference between the machine type which we set in Vertex ai workbench for Notebook and the machine type in python SDK of [aiplatform.CustomTrainingJob][1] run method? The machine type is already provisioned for notebook, so why we are specifying it again inside the script of the notebook?! [1]: https...
```py import cv2 import numpy as np from scipy.interpolate import RBFInterpolator # Load the image image = cv2.imread('image.png') width,height = image.shape[:2] w=width h=height # Your source points and corresponding destination points src_points = np.array([ [0, 0], [w,h], [w,0], [0,...
> I would think if it can identify the attribute it should have access to the class name as well.. Human attribute names are defined on class level: https://apidock.com/rails/ActiveModel/Translation/human_attribute_name So as I see it knows nothing about params you pass (while your association is polymorphic a...
{"OriginalQuestionIds":[60174],"Voters":[{"Id":286934,"DisplayName":"Progman"},{"Id":5389997,"DisplayName":"Shadow","BindingReason":{"GoldTagBadge":"mysql"}}]}