instruction
stringlengths
0
30k
{"Voters":[{"Id":3689450,"DisplayName":"VLAZ"},{"Id":1377002,"DisplayName":"Andy"},{"Id":1145388,"DisplayName":"Stephen Ostermiller"}]}
Yesterday I had to add some changes to my database table and all the data was lost, which it wasn't a problem because I'm just developing the project. The problem arises after I did that. I started to get this 500 server error in development, Im using supabase as a database and Next js app router latest with prisma, tr...
Assuming the data has been stored in table named Numbers ``` SQL WITH NUM AS ( SELECT A.*, ROW_NUMBER() OVER(PARTITION BY ID1, ID2 ORDER BY VALUE) AS RN FROM NUMBERS A ) SELECT A.ID1, A.ID2, A.LOWER, A.VALUE,A.UPPER, A.MEASUREMENT, SUM(COALESCE(B.MEASUREMENT, 0) ...
Adding the path as suggested in the comments was sufficient. In essence adding this to: `conf.py` made the test files findable in the Sphinx documentation: ```py sys.path.insert(0, os.path.abspath("../..")) ```
I'm using microsoft office 365 email purchased from godaddy. I have enabled smtp authentication in godaddy for the email. I'm using that email in nodejs app with nodemailer to send email. Getting this error. Error: Mail command failed: 530 5.7.57 Client not authenticated to send mail. I have attached the document of go...
|kubernetes-helm|gitops|fluxcd|
I'm currently building a little app to retrieve information from an HTML Form (multiples checkboxes actually) and pass this information as args to a powershell exec command. Currently I get this kind of array as a result : ``` Array ( [0] => Group1 [1] => Group2 [2] => Group3 [3] => Group4 ...
This looks like a bug to me. The animations involving rotation and offset are not respecting the animation duration and have a delay at the end. The delay is almost as long as the animation itself (and more noticeable if you give the animation a longer duration). As a workaround, you could use a `PhaseAnimator ` to ...
I have JSON Rows which can change key and type of values changing keys in examples are `015913d2e43d41ef98e6e5c8dc90cd09_2_1` and `e8c93befe4a34bcabbf604e352a41a2d_2_1` changing types of values are list: ``` "answer": [ "<i>GET</i>\n", "<i>PUT</i>\n", "<i>POST</i>\n",...
I have got 16 buttons and i am generating a random umber from 1 - 16 but then i don't know how to use that number that I've generated to access the variable. I tried "Button" + Order(Ord) but couldn't then access the properties of the variable. ``` Sub game() Order(Ord) = ((15 * Rnd()) + 1) Console.Text...
Accessing a variable from a string
|vb.net|variables|
null
Why `unsat` === The reason you're getting `unsat` is your last constraint: ``` (not (exists ((s Int)) (implies (<= 0 s N) (<= 2 (+ (ite (distinct (B s 1 1) (B (+ s 1) 1 1)) 1 0) (ite (distinct (B s 1 2) (B (+ s 1) 1 2)) 1 0) (ite (distinct (B s 1 3) (B (+ s 1) 1 3)) 1 0) (ite (distinct (B s 2 1) (B (+ s ...
It's a new instaclick behavior in *Turbo v8*: *https://github.com/hotwired/turbo/pull/1101* You can disable it by adding a meta tag to your page: ```html <meta name="turbo-prefetch" content="false"> ``` or data attribute to/around your links: ```html <a href="/" data-turbo-prefetch="false">Home</a> <di...
i have been creating some form elements like name, age, adress and also i have to add bloc for the achievements,skills,projects and education, but i have an issue while dealing with jQuery repeaters , it's just a made a node list to fill it with multi-values indormation like achievement or skills but the DevTools shows...
Node list can't find the value
|javascript|jquery|jquery.repeater|
null
|excel|vba|excel-tables|listobject|
You need to run at the end of each day a function that protects that day's sheet. To automate that, add a [time-driven trigger](https://developers.google.com/apps-script/guides/triggers/installable#time-driven_triggers) and set it to fire at 23:00 hours. The code to protect today's sheet could look like this: ```...
{"Voters":[{"Id":4294399,"DisplayName":"General Grievance"},{"Id":168175,"DisplayName":"Flexo"}],"SiteSpecificCloseReasonIds":[18]}
**My Typescript code using Drizzle ORM to insert into a 'users' table in a Postgres database:** const res = await db.insert(UsersTable) .values(newUser) .onConflictDoUpdate({ target:UsersTable.email, set: { ipList:sql`array_append(${UsersTable.ipLis...
One to onte and many to one Relationship in EF Core
|c#|asp.net|entity-framework|entity-framework-core|abp|
null
I have a chat function in which I pass text and it is displayed in a chat bubble for question and answer. The chat function passes answers which could sometimes be large amount of text( just like in Whatsapp) so need a Read more functionality so that only if they want to read, they can click on the button and read it. ...
user avatarjamall winn 1 Text analytic insights Asked today Modified today Viewed 1 time 0 library(tidyverse) # For data manipulation library(tidyr) # For data tidying library(dplyr) # For data manipulation library(ggplot2) # For data visualization library(tm) # Fo...
Text analytics and Insights
|text|
null
Had the same issue on Flutter 3.19.3. Fixed by updating pods: - freezed 2.3.2 -> 2.4.7 - build_runner 2.4.5 -> 2.4.8 - json_serializable 6.7.0 -> 6.7.1 - built_value_generator 8.6.1 -> 8.9.1
For a personal project, I want to make a service that permit me to start a db in one click. And I don't know how to build something's like that. I want to have the possibility to select the type of db (Postgres, MySQL...), and the db will be deployed automatically without any configuration from me. It's exactly ...
Error: Mail command failed: 530 5.7.57 Client not authenticated to send mail
|node.js|outlook|smtp|nodemailer|microsoft365|
null
As suggested in a comment, you could use the same technique as shown in the answer to [In Swift, how can I matchedGeometryEffect for a clipped() image without it glitching?](https://stackoverflow.com/a/78159972/20386264) (it was my answer). - Use placeholders in a `ZStack` to define the two positions. - The small v...
|visualization|apache-superset|preset|treechart|
In my fastapi app I have a pydantic BaseModel 'Invoice', It has a field 'taxes_list', wich is just a list of TaxModel, When I read the docs generated I realize that, there is not not indication that, the taxes_list is a list of TaxModel, In the following picture you can see that taxes list is an array of object and the...
My socket.io web socket application is not sending data to some users
|node.js|websocket|socket.io|
null
The default splash screen cannot be overridden with Dart/Flutter alone.You can use [flutter_native_splash][1] pakage to create the splash screen. [1]: https://pub.dev/packages/flutter_native_splash/example
Answering my own question. After reading about flutter layouts and doing experiments I implemented following working code.\ [DartPad link](https://dartpad.dev/?id=555c8fc9ee2cba42c777219a1237709d) to try it out ``` import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; void main() { r...
i have build my ios app using xcode 14 and ios 16.0.1, but some users report that app crashed on iphone 15 pro max, i assumed that it a version mismatch, i installed the last update available in app store for xcode, which is xcode 15, i installed ios 17, but when i try to build my app using iphone 15 i always got modul...
In a NuxtJs 3 project I tried to add some specific stuff into my app.config.ts a the root directory of my project. When I tried to call `useAppConfig()` to use my config data, VSCode raise an error `appConfig.as is unknown type` I'm stuck with that :( The `app.config.ts` : ```typescript interface asAppConfi...
**Update** The `usmap` has been modernized in version [`0.7.0`](https://github.com/cran/usmap/blob/master/NEWS.md#usmap-070) and now returns map data as simple features, i.e. `geom_polygon` will no longer work. Instead we have to use `geom_sf`: ``` r library(usmap) library(ggplot2) selected_states <- c( "AL"...
Search to know the best way to do a " Database on demand " for a personal project
|database|postgresql|kubernetes|networking|devops|
null
I'm developing a custom React table component with TypeScript, and I need to ensure the data passed as props is correctly formatted. The component accepts two props: - `tableHeadings`: An array of objects, where each object has an `id (string)` and a `title (string)`. - `tableData`: An array of objects, where eac...
JSON parse JSON with changing Key and changing type of value (list or string)
|json|powerbi|powerquery|directquery|
null
I have a repository, which I created a Project for under **Projects** to record my progress. But now I want to make the repository public and not include the linked/connected Project when publishing. How do I transfer/remove it from the list? While it's already private is it possible to remove it from the list so no...
I have full fledge application that I have been working on for about 2 years now and it work absolutely fine up until last week. The application uses Nuxt2 and some other vue2 packages. The cloud platform I m using is Azure. Hence I m using `@azure-storage` package. The project works absolutely fine locally and ev...
null
I have this specific JSON response that I am trying to deserialize without success. I am hoping someone can help me. Here is the JSON response I get: { "num_locations": 1, "locations": { "98765": { "street1": "123 Fake Street", "street2": "", "city": "...
I am quite new to coding, python and pyside6. I have spent a few months getting the code below which seems to work well. I have tried many different ways to achieve something quite simple (I think). I want to get access to the dataframe named self.filtered_df which is in the PandasModel class. I want this access to ...
Unfortunately, D3 canonical examples are generally found on Observable, which while interactive and useful, doesn't translate to regular 'ol javascript without a change or two. First, the `return svg.node()` is used by Observable to return a detached DOM element in order to display it. The detached node is created ...
If I were to answer, I would try to be as efficient as possible and not create a "one-liner," as it likely doesn't do what you expect. I know you mention not looping, but for those who see your question and do not mind looping, I would do the following: uses System.SysUtils, System.RegularExpressions;...
1. I add a custom tokenizer splitter as the first stage. It correctly splits the single token into two tokens. 2. I then detect the two (splitted) tokens using a SpanRuler. Notice that the SpanRuler works for a pattern of two separated tokens (ie pattern=['abc', 'efg']), and will correctly detect nothing if the patt...
null
I've read [this topic][1], but it doesn't work for me. I use `Text Mesh Pro` and want to place background below the text. I've tried this template, but Unity does not accept the `<font>` tag and displays it as text. <font="MasonChronicles SDF"><mark=#000000FF><color=red>My text</color></mark></font> [![...
null
The examples you linked work out of the box for me. Let's see how they operate. # Web progress bar ![](https://i.stack.imgur.com/0wuXR.png) This progress bar gets embedded from a website called https://progress-bar.dev/, which generates on-demand pictures of progress bars. The [DataviewJS](https://blacksmithgu...
I am traying to create a tree chart showing all departments under different companies. I tried following code. ``` SELECT c.company_name AS cmp, d.department AS dept FROM _companies c LEFT JOIN _departments d ON c.id = d.company_id where c.company_name is not null and c.company_name <> ...
How to assign label to nested Basemodel in pydantic with fastapi
|python|swagger|fastapi|openapi|pydantic|
Nowadays, [Tree-sitter](https://tree-sitter.github.io/tree-sitter/) is an alternative to regex-based syntax highlighting that is used in a number of editors such as [Neovim](https://neovim.io/), [Lapce](https://lapce.dev/), [Pulsar](https://pulsar-edit.dev/), or [Zed](https://zed.dev/).
My goal in posting this is to integrate my other post [here](https://stackoverflow.com/q/78236646/6376297), where I was asked to provide a minimal working example, but also to ask for advice regarding the code itself, in case someone can suggest a better/faster/more reliable approach. Hence the separate post (not in t...
MOST SIMPLE WAY OF GETTING EMPLOYEES WORKING IN AN ORGANISATION BEFORE 1 YEAR, WE CAN ASSUME TO GIVE THEM APPRAISAL & SLEECTING ONLY THOSE WHO HAVE FINISHED 1 YEAR IN AN ORGANISATION. BASICALLY FROM TODAY'S DATE I AM SUBSTRACTING 1 YEAR. ``` SELECT * FROM employees WHERE date_of_joining < (SELECT DATE_SUB...
You can try this codes. Map map = new Map(mapSpan) { IsShowingUser = true, IsScrollEnabled = true, IsZoomEnabled = true, IsTrafficEnabled = false }; Application.Current.RequestedThemeChanged += (s, e) => { AppTheme currentTheme = ...
{"Voters":[{"Id":1145388,"DisplayName":"Stephen Ostermiller"}],"SiteSpecificCloseReasonIds":[18]}
For re-ordering tabs in the same `TabPane`, as of JavaFX 10 there is: [`myTabPane.setTabDragPolicy(TabDragPolicy.REORDER);`][1] [1]: https://openjfx.io/javadoc/21/javafx.controls/javafx/scene/control/TabPane.html#setTabDragPolicy(javafx.scene.control.TabPane.TabDragPolicy)
[The requested page cannot be accessed because the related configuration data for the page is invalid.] (https://i.stack.imgur.com/WAYGn.png) Even after giving all the permission, application is not running and I am getting the same error everytime as attached with screenshot. I am not able to host it on iis we...
Hosting ASP.NET MVC application on IIS web server using Windows 2019 server
|c#|asp.net-mvc|iis-10|windows-server-2019|
null
To show notification I an using [flutter_local_notifications](https://pub.dartlang.org/packages/flutter_local_notifications) package. I am getting notification, but schedule notification is not working. Here is my code initState() ``` @override void initState() { // TODO: implement initState s...
SpanRuler on Retokenized tokens links back to original token text, not the token text with a split (space) introduced
|python|nlp|spacy|tokenize|
null
{"Voters":[{"Id":20259506,"DisplayName":"Chamalka Jayashan"}],"DeleteType":1}
I'm developing a Flask application for bone fracture detection, where users can upload X-ray images, and the application predicts whether a bone fracture is present or not. However, I'm facing an issue with handling irrelevant uploads, such as images of body parts other than elbows, hands, and shoulders. Here's an o...
Handling Irrelevant Uploads in Flask Application for Bone Fracture Detection
I have build the angular lib named "my-lib" and also including the assets folder where my shared styles sheet files are there. After that I have published this lib inside my npm repository. Now in my consumer app called "my-app", I have installed the above library using the npm command.In the node_modules folder I c...
The following regular expression will match the desired string. rgx = /^foo:\s*(?:"\K[^'"\n]*(?="\s*$)|'\K[^'"\n]*(?='\s*$)|\K[^'"\n]*(?=\s*$))/ [Demo](https://regex101.com/r/OneWMG/1) For example: "foo: 'bar'"[rgx] #=> "bar" 'foo: "bar"'[rgx] #=> "bar" "foo: bar"[rgx] #=> "bar" The...
Just run python manage.py shell_plus --lab and if you are running inside a docker container: python manage.py shell_plus --lab -- --allow-root --no-browser --ServerApp.ip 0.0.0.0
When I try to log in, the Redux reducers update the state correctly, but the login page doesn't navigate to the home page immediately. However, if I click the login button again, then it navigates to the home page. The backend seems to be working fine, and when I check with Redux-DevTools, it shows that the state has b...
|javascript|reactjs|ecmascript-6|react-redux|redux-toolkit|
I've been seeking an answer for such issue for months. Not intensively but I've been looking around. Rather than a shortcut formula just recently I have found out a package PMwR (Portfolio Management with R). You need to create a journal in its terms with unit price, net amount (buy/sell), stock name and date. My ...
I have taken a `zip` generator function, and I'm trying to infer the result type. Given `zip(A, B)` with A `Iterable<string>` and B `Iterable<number>` I'd want to infer the return type `Generator<[string, number][]>` Here's what I got so far: ``` declare function zip<T extends Iterable<any>[]>(...iterables: T): ...
I have a class: ``` #include <array> #include <ranges> #include <algorithm> struct VectorUnitIndexInitTag {}; struct VectorFillInitTag {}; template<class T, std::size_t N> requires std::is_arithmetic_v<T> && (N >= 1) class Vector { public: static constexpr std::size_t Dimension = N; usin...
Static data member of template class type: constexpr vs. const constinit
|templates|constexpr|static-variables|c++23|constinit|
null
|velo|
I have AWS Lambda trigger configured on POST/PUT S3 event. S3 files are generated with same name with some variation in the content almost at the same time. The first file (file1.json) is generated with Content A and the second file with same name (file1.json) is generated with Content B. When these two files are drop...
AWS Lambda Trigger For Same S3 File Name In Quick Succession