Posts

Showing posts from April, 2022

How to make one dropdown menu dependent on another

Image
I have a dropdown menu showing states and counties. I want the county one to be dependent on the state one. I am using react, javascript, prisma to access the database. I made it work separated, so I can get the states to show and the counties, but I don't know how to make them dependent. What I think I need is a way to change my function that bring the county data. I can group by the state that was selected. So what I need is after getting the state that was selected to send that to my "byCounty" function. Is that possible? menu.js export default function DropDownMenu(props){ if(!props.states) return return( <table> <body> <select onChange={(e) => { console.log(e.target.value) }}> {props.states.map(states=> <option>{states.state}</option> )} </select> <select > {props.byCounty.map(byCounty=...

How to use Ray with sklearn?

I have a hard time using Ray with sklearn, what is the best practices for using it with Ray? And bonus question, how do you integrate that with MLFlow?

How to set substring statement as valid column name in SQL Server

I have a code like the following: INSERT INTO [TranslateValidate]..[Policy] ([BirthDate],[FirstName],[LastName]) SELECT [Table2309].[DOB], SUBSTRING(Full_Name, CHARINDEX(',', Full_Name) + 2, LEN(Full_Name)), SUBSTRING(Full_Name, 0, CHARINDEX(',', Full_Name)) FROM [Table2309] AS [Table2309] WHERE [Table2309].[clientid] = (SELECT MIN(clientid) FROM Table2309 T WHERE T.Date_of_Birth = Table2309.Date_of_Birth AND T.Substring(Full_Name, CHARINDEX(',', Full_Name) + 2, LEN(Full_Name)) = Table2309.Substring(Full_Name, CHARINDEX(',', Full_Name) + 2, LEN(Full_Name)) AND T.Substring(Full_Name, 0, CHARINDEX(',', Full_Name)) = Table2309.Substring(Full_Name, 0, CHARINDEX(',', Full_Name)) This would have an error message Cannot find either column "c" or the user-defined function or aggregate "c.Substring", or the name is ambiguous. If I add [] for Substring part, this would should error message ...

How to get text from the DOM element in cypress

Image
I am new in cypress, I want to create a dynamic method that returns the text of whatever DOM element pass on it, so I have created one but it returns some unexpected result please see the below code and suggest to me where I am doing wrong or what is the best option for achieving this task. login_objrepo.json { "Signin_lbl":".login100-form-title.p-b-10" //Locator } Login.sepc.js import commonUtility from "../../support/commonUtility"; const util = new commonUtility(); const objLogin = require('../../fixtures/login_objrepo'); describe('Login Page', function () { it('Verify Page', () => { util.openUrl(objLogin.URL); const exp = 'Sign In'; const act = util.getText(objLogin.Signin_lbl); cy.log("Exp title=" + exp + " and Act=" + act) cy.get(objLogin.Signin_lbl).should('have.text',exp); }) }) commonUtility.js...

Having trouble using winapi to read input from a device

I followed the steps here to try and read some input from a device. I've been trying for a couple hours now to figure out why GetMessage doesn't return anything. Originally I was trying to read from a certain device, but seeing as that wasn't working, I wanted to just try reading keyboard or mouse inputs. However, I've had no luck in doing so. Edit: Some more info. I'm on Windows 10. I'm running the code in cmder (not sure if that makes any difference) with python main.py . There are no error messages and the output is Successfully registered input device! before the program just waits to receive a message from GetMessage . Here's the running code: main.py: from ctypes import windll, sizeof, WinDLL, pointer, c_uint, create_string_buffer, POINTER from ctypes.wintypes import * from structures import * from constants import * # I put a comment specifying the value for each variable used from here k32 = WinDLL('kernel32') GetRawInputDeviceInfo ...

IIS Express w/ VS 2022 crashes when debugging web app and selecting file via file html input on page w/ ExtJs

Here are the details: OS: Windows 2016 server accessed over RD Dev tools: VS 2022 17.1.6 & VS 2019 16.11.11. I run VS in Admin mode (both) IIS Express version: 10.0.22489.1000, 64 bit Browser Chrome: 100.0.4896.127 (Official Build) (64-bit) App:.net 4 webforms application that uses ExtJs 6.6.0 classic as front end Antivirus: CrowdStrike, version 6.36.15005.0. I have a form with a file field. This link has more information on how the upload works, it basically uses an iframe under the hood. Now, in VS 2019 the upload works. In VS 2022 the upload doesn't work anymore and it returns the error: "Blocked a frame with origin "http://localhost:38991" from accessing a cross-origin frame." (the error is returned in the client JavaScript code). Just to be clear, I open exactly the same project in VS 2019 and it works, then I open the project in VS 2022 and the uploads don't work anymore. Both use the same IIS Express process (64 bit). And one minor de...

Openpyxl - Merge same cells in column

Image
I'm having trouble making a function that looks through a column (or each column) in the dataframe I'm writing and merging consecutive cells ie. Would appreciate the help if anyone has done something like this. I've seen one response that uses pandas ExcelWriter, but don't think this is what I'm looking for.

How to change default time of tkTimePicker analog clock

Image
I am using the Analog Picker from tkTimePicker . The default time (the time that it shows initially) is 12:59 AM. I want to be able to change the default time to what the user saved it previously. My current code for showing the time picker is: from tkinter import * from tktimepicker import AnalogPicker, AnalogThemes, constants def editTime(): editTimeWindow = Toplevel(window) time_picker = AnalogPicker(editTimeWindow, type=constants.HOURS12) time_picker.pack(expand=True, fill="both") theme = AnalogThemes(time_picker) theme.setNavyBlue() editTimeWindow.mainloop() editTime() Is there a way to change the default time?

Reading comma-separated words from a file

FILE* inp; inp = fopen("wordlist.txt","r"); //filename of your data file char arr[100][5]; //max word length 5 int i = 0; while(1){ char r = (char)fgetc(inp); int k = 0; while(r!=',' && !feof(inp)){ //read till , or EOF arr[i][k++] = r; //store in array r = (char)fgetc(inp); } arr[i][k]=0; //make last character of string null if(feof(inp)){ //check again for EOF break; } i++; } I am reading the file words and storing them in the array. My question is: how can I randomly select 7 of these words and store them in the array? The input file has the following content: https://ibb.co/LkSJ1SV meal cheek lady debt lab math basis beer bird thing mall exam user news poet scene truth tea way tooth cell oven

Android Studio "Intent" not working even after importing "android.content.Intent"

I am trying out a very simple intent example follow this youtube video. However, i facing a very weird error where this particular line cannot work: Intent myIntent = new Intent(this, DisplayActivity.class) It provide me error as shown in the picture: Error I also had tried out the "bulb" button in AS to debug it but it didn't show me a valid solution. The suggested action is as shown in the picture Original AS code editor image The full code is shown below: package com.example.parcelsort_ar import android.content.pm.PackageManager import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import android.view.View import android.widget.Button import android.widget.TextView import android.widget.Toast import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat import com.budiyev.android.codescanner.* import com.example.parcelsort_ar.databinding.ActivityMainBinding import android.content.Intent private con...

How to Get web data based on link in excel cell?

Image
I'd like to create an Excel sheet, where in one column there is a link to a website like this: Link in column A where there is a MAC add in that url that changes from line to line rest of link is geraric. and it takes the info in the 2 lines marked with arrows and put into another cell. This should be possible for multiple links in different rows from websites with the same structure. How can I make the web query to be based on the link in the adjacent cell?

How do i copy the all worksheets using xlwings module in python?

I have a macro excel file, it's having 3 worksheets. I need to saveas or copy all worksheets to new excel sheet. How to do in python using xlwing module?

How to reduce processing time of a code in R

Image
Can you help me think of some way to reduce the computational time of a code that generates a certain value, which in this case I call coef , which will depend on id/date/category ? Better explanations below. I made two functions that generate the same result. As you can see in benchmark , the first function ( return_values ) takes twice as long as the second function ( return_valuesX ) to generate the same results. See that in the second function, I make some brief changes when calculating the coef variable. However, I strongly believe that there is a possibility of improving the code, as you can see in the second function, I managed to improve 50% of processing time compared to the first just with brief changes. But I'm out of ideas for new adjustments, so I would like your valuable opinion. Code Explanations: In general, the purpose of the code is to calculate a value, which I call a coef for each group of id , date and category . For this, the median of the values ​​resul...

My cash value is suppose to go up every minute but its not. (Roblox Studio lua error)

Image
I was trying to re-edit the code over and over again but it still didn't work I've created the folder leader stats and when I play the game it shows that it's a part of the player. It says however that it isn't a valid member. The other error says: Cash is not a valid member of Folder "Players.(players name).leaderstats"

How would I consume the body of a put request from a web worker

I want to consume data sent through a put request in a web worker. How would I do so? this the part in my code where I am trying to handle the put request if (method === 'put') { var data = await event.request.arrayBuffer(); // is this how I could consume the request? await updateTree(path); // this is successful await put(path, data); // this isnt written return new Response('', { // the request still finishes headers: { 'content-length': 0 }, status: 201 }); } path : the request path event : the fetch listener event put : a function that uses the indexeddb api to store data, this function has been tested and works

How to bring browser to front and maximize using Selenium Python

I am working on automating a section of data entry using a mixture of Selenium and Pyautogui. I have the manual automated part down using the module Pyautogui but I need to bring the browser to the front so the mouse and keyboard can interact with the browser. All the solutions I've tried maximizes the window but it stays in the background.

Issues with data wrangling in R

I did an online experiment with 700 participants and got the data for each participant in a seperate csv file. My first step was to import just one file and try to wrangle it the best way for further analysis. The next step would to apply this to all 700 csv files and then merge everything together. Is this more or less the right way to do it? I am new to R and stuck on the wrangling part. The first picture is what I got so far (current). the second picture is were I want to go (goal). current goal Is it possible, to move all the data to the top of each column, that no empty cells/NA is above the data? in the column RT_first_letter: is it possible to get only the first entry of the row 6 (in picture current). In this case 2.949...? Thanks for the help in advance!

Javascript string interpolation gives different result than string concatenation

I ran across a case where Javascript string interpolation is not giving the same result as string concatenation. Here is a simplified version of the code showing the difference: const mmt = moment(); console.log('concatenated: ' + mmt); // "concatenated: 1651070909974" console.log(`interpolated: ${mmt}`); // "interpolated: Wed Apr 27 2022 10:48:29 GMT-0400" console.log('mmt.valueOf(): ' + mmt.valueOf()); // "mmt.valueOf(): 1651070909974" console.log('mmt.toString(): ' + mmt.toString()); // "mmt.toString(): Wed Apr 27 2022 10:48:29 GMT-0400" So my immediate thought was that it was due to a difference in .toString() and .valueOf() , so I made a small test object to verify: const obj = { toString: () => 'toString', valueOf: () => 'valueOf', }; console.log('concatenated: ' + obj); // "concatenated: valueOf" console.log(`interpolated: ${obj}`); // "interpolated: toString...

Issues running an automatic and unattended clonezilla restore drive

Image
When I try to run an automated and unattended restore via Clonezilla it returns the following error: Now run "ocs_prerun": mount /dev/sdb2 /mnt... Mount: /mnt: special device /dev/sdb2 does not exist. Failed to run: mount /dev/sdb2 /mnt Press "Enter" to continue...... Then, after hitting Enter it shows the following error: The directory for this inputted image name does NOT exist: /home/partimag/Amentum_04_21_2022 Program Terminated!!!! "ocs-sr -kl -e1 auto -e2 -batch -r -j2 -scr -p reboot restoredisk Amentum_04_21_2022 sda" finished with error! Here is the first entry of my grub.cfg file: # Since no network setting in the squashfs image, therefore if ip=, the network is disabled. menuentry "Flysoft RESTORE" { search --set -f /live/vmlinuz $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset enforcing=0 noprompt ocs_prerun="mount /dev/sdb2 /mnt" ocs_prerun1="mount ...

karate.io.github.classgraph.ClassGraphException: Uncaught exception during scan and java.lang.OutOfMemoryError: Java heap space

Getting this error while trying to run a single Karate API test And also Added @SpringBootTest, @AutoConfiguration and @TestResourceProperty in the runner file and also tried increasing the heap space to 4096MB still the same error. java.lang.ExceptionInInitializerError at com.intuit.karate.Runner$Builder.resolveAll(Runner.java:276) at com.intuit.karate.Suite.<init>(Suite.java:168) at com.intuit.karate.junit5.Karate.iterator(Karate.java:59) at java.base/java.lang.Iterable.spliterator(Iterable.java:101) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86) at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86) at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestR...

youtube_dl stuck on "downloading webpage" when trying to run Discord Bot

I am trying to create a Discord music bot using Python, and when running my bot's code through the terminal, the bot successfully joins the channel I am in and recognizes that there was a link from Youtube that it needs to play. However, the bot is for some reason stuck in the terminal on 'downloading webpage' and never loads through yet also never throws an error. I am unsure of what I need to fix or need to add. An example of what it says is: [youtube] IOatp-OCw3E: Downloading webpage All of the code for my bot is here: import youtube_dl import os import asyncio import nacl client = discord.Client() token = 'REMOVED FOR PRIVACY' voice_clients = {} yt_dl_opts = {'format': 'bestaudio/best'} ytdl = youtube_dl.YoutubeDL(yt_dl_opts) ffmpeg_options = {'options': '-vn'} @client.event async def on_ready(): print(f"Bot logged in as {client.user}") @client.event async def on_message(msg): if msg.content.starts...

Python in javascript (Brython) execute function with timeout

I'm trying to execute a python function with a timeout, I've found some good ideas on stackoverflow but they don't seem to work for me as I'm executing the python function from javascript (using Brython) and multithreading/sleep don't work well (no sleep function in javascript). Any idea relatively easy to implement that would allow me to terminate a function if its execution takes more than 10s (see logic below): def function_to_execute: print("function executing") time_out=10 exec(function_to_execute) time_function_started=time() if time()>(time_function_startedtime_out) and function_to_execute not complete: (simplified for clarity) function_to_execute.terminate() Thanks,

Additive deserializing with Serde

I'd like to additively deserialize multiple files over the same data structure, where "additively" means that each new file deserializes by overwriting the fields that it effectively contains, leaving unmodified the ones that it does not. The context is config files; deserialize an "app" config provided by the app, then override it with a per-"user" config file. I use "file" hear for the sake of clarity; this could be any deserializing data source. Note : After writing the below, I realized maybe the question boils down to: is there a clever use of #[serde(default = ...)] to provide a default from an existing data structure? I'm not sure if that's (currently) possible. Example Data structure struct S { x: f32, y: String, } "App" file (using JSON for example): { "x": 5.0, "y": "app" } "User" file overriding only "y": { "y": "user" } Expected...

How to mark a vertex has been visited in graph

I am implementing graph structure for my path finding in a maze program. In some operation like: traversing graph, free the graph (which is malloc-ed before, or use breadth first search,... It is require to check if a vertex is visited or not. This is vertex and edge struct: typedef struct graph { // val just use to label the vertex int val; // since the maze just has 4 directions, // I simplify vertex to just point to 4 other vertices edge up; edge down; edge left; edge right; }vertex; typedef struct Edge { int weight; vertex *neighbour; bool visited; }edge; I have thought about 2 solutions. The first is add bool visited; in vertex or edge struct and initialize it to false , but it just able to use 1 time, because I don't know how to reinitialize the visited . The second approach is make a link list, put the visited vertex in that list and check for visited vertex in that list when required. But it costs so much work when there...

Handle Api response in Ktor

hey I am trying to learn ktor for my api request. I am reading Response validation in doc. ApiResponse.kt sealed class ApiResponse<out T : Any> { data class Success<out T : Any>( val data: T? ) : ApiResponse<T>() data class Error( val exception: Throwable? = null, val responseCode: Int = -1 ) : ApiResponse<Nothing>() fun handleResult(onSuccess: ((responseData: T?) -> Unit)?, onError: ((error: Error) -> Unit)?) { when (this) { is Success -> { onSuccess?.invoke(this.data) } is Error -> { onError?.invoke(this) } } } } @Serializable data class ErrorResponse( var errorCode: Int = 1, val errorMessage: String = "Something went wrong" ) I have this ApiResponse class in which, I want to handle api response through this post . As you see in the link, there is function called fetchResult , insi...

How can I make a button clickable only one time?

I want to create a button that gets disabled after one click/is just clickable one time... I couldnt find anything about it.

.htaccess redirect problem - [This rule was not met.]

Image
I trying to create redirect old non existing page to new URL on Apache with htaccess file, i am very confused, because i tried a lot of combination of this redirect I need to redirect something about 10 subpages like: https://example.com/main/home/news -> https://example.com/ https://example.com/main/checkout/summary -> https://example.com/summary https://example.com/main/auth/home -> https://example.com/myaccount I tried to use (for 1st example) this .htaccess code: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^main/home/news$ /? [L,R=301] RewriteRule ^index\.html$ - [L] RewriteCond %{QUERY_STRING} ^$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.html [L] </IfModule> but in the validator I have information: "This rule was no meet" I am also wondering if it is not a matter of the fact that the application is running on azure app services Screensho...

Anaconda (3-2021.11) environment not showing up in Jupyter Notebook

I am having trouble getting my anaconda environment to show up in jupyter notebook. I'm not sure if the current solutions are dated or if I am doing something wrong. I make the behavior clear to hopefully make identifying the issue easier. I install Anaconda3-2021.11 for Linux from their website : $ sh ./Downloads/Anaconda3-2021.11-Linux-x86_64.sh $ reboot $ conda update conda -y $ conda install nb_conda_kernels -y We see the following conda environments: $ conda env list # conda environments: # base * /home/user/anaconda3 And we can see where python is: $ echo $CONDA_DEFAULT_ENV base $ which python /home/user/anaconda3/bin/python $ python --version Python 3.9.7 I observe the following with jupyter and nb_conda_kernels: $ jupyter kernelspec list [ListKernelSpecs] WARNING | Config option `kernel_spec_manager_class` not recognized by `ListKernelSpecs`. Available kernels: python3 /home/user/anaconda3/share/jupyter/kernels/python3 $ python -m nb_...

F# GreaterThanZero passing int or decimal

I want to create a function that check if the passed value is greater than zero. The passed value can be an int or a decimal (ideally a "numeric value"). In the immediate I just started with this: type number = | I of int | D of decimal type Checker () = member this.Validate value = match value with | I x when x > 0 -> "ok" | D x when x > 0m -> "ok" | _ -> "error" let a = 1f let b = 1m //let a_IsValid = Checker().Validate(a) // does not compile, expect number (not int) //let b_IsValid = Checker().Validate(b) // does not compile, expect number (not decimal) Found not immediate to pass a "number" so tried something different... I found this article ( http://tomasp.net/blog/fsharp-generic-numeric.aspx/ ) and I thought "static member constraint" is the perfect solution for me. A basic example works as expected: let inline divideByTwo value = LanguagePrimitives.Divid...

how to get focus in TitleText input from npyscreen?

Image
I need to get the focus back to the first input after write and press the enter key in another input. For instance, after enter a value in myPrecio input and press enter i need to get the focus back to myCodigo input, how can i achieve this? import npyscreen class MyGrid(npyscreen.GridColTitles): # You need to override custom_print_cell to manipulate how # a cell is printed. In this example we change the color of the # text depending on the string value of cell. def custom_print_cell(self, actual_cell, cell_display_value): if cell_display_value =='FAIL': actual_cell.color = 'DANGER' elif cell_display_value == 'PASS': actual_cell.color = 'GOOD' else: actual_cell.color = 'DEFAULT' class nuevoIngreso(npyscreen.FormBaseNew): def afterEditing(self): self.parentApp.setNextForm(none) def create(self): self.myDepartment = self.add(npyscreen.Title...

Locating an element within another element

public LocatedCarParksMap locateAndClickOnTheCardByAddressIndicator(String location) { List<WebElement> quoteCards = driver.findElements(By.cssSelector(".quote-card")); for (WebElement webElement : quoteCards) { WebElement locationElement = webElement.findElement(By.cssSelector(".quote-card-asset-location")); if (locationElement.getText().equals(location)) { webElement.findElement(By.xpath(".rate-card-description")).click(); } throw new NoSuchElementException(); } return this; } DOM Locating list of cards iterating through it and locating needed card by locating the element that contains the address i am looking for if address is the one i am looking for i am trying to find .rate-card-description within the same card element and then clicking on it to proceed further I have debugged it and it does loc...

Unable to get mp4 tkhd info using go-mp4

Using package github.com/abema/go-mp4 when i try to run the example in the docs i get following error: invalid operation: box (variable of type *mp4.BoxInfo) is not an interface Here is the example that i am trying: // extract specific boxes boxes, err := mp4.ExtractBox(file, nil, mp4.BoxPath{mp4.BoxTypeMoov(), mp4.BoxTypeTrak(), mp4.BoxTypeTkhd()}) if err != nil { : } for _, box := range boxes { tkhd := box.(*mp4.Tkhd) fmt.Println("track ID:", tkhd.TrackID) } https://pkg.go.dev/github.com/abema/go-mp4#section-readme

Matching URL with username and password [closed]

I have a regex for validating IP addresses and domain names which has been working well so far /** Checks if a URL is valid */ export function isValidURL(str: string): boolean { var pattern = new RegExp( '^(https?:\\/\\/)?' + // protocol '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // domain name '((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path '(\\?[;&a-z\\d%_.~+=-]*)?' + // query string '(\\#[-a-z\\d_]*)?$', 'i' ); // fragment locator return !!pattern.test(str); } The problem is when I use a username and password it breaks. http://admin:admin@192.168.92.106:5500/api/v1/ Is there a solution that would pass the URL as valid if including a username and password in the URL

Matlab new C++ MEX function runnign speed vs C Mex interfaces

Recently I am working on boosting Matlab project performances. As you may know, Matlab 2017 introduced a new C++ Mex function to avoid unnecessary data copies, I believe it supposes to be faster than previous C Mex interfaces. So I wrote a demo to test, this demo simply calculates returns for some 2d matrix, and for 50 rounds iterations, C++ MEX took 70s to complete vs 0.089s C Mex function. I am using Matlab 2021b and visual studio 2022. This runtime is unreasonable Sample Matlab code: ret(di,:) = basedata(di,:) ./ (basedata(di-1,:) * flag(di:, ); So I converted this function for both c mex and c++ mex function: c++ mex: size_t numRows = inputs[0].getDimensions()[0]; size_t numColumns = inputs[0].getDimensions()[1]; TypedArray<double> ret = std::move(inputs[0]); TypedArray<double> data = inputs[1]; TypedArray<double> flag = inputs[2]; size_t i, j, pos; for (i = 1; i < numRows; i++) { for (j = 0; j < numColumns; j++) { if (data[i - 1][j] > 1 ...

Unable to show login messages when username is correct and password is wrong

I have just started learning express. I am adding basic authentication using passport js. I have followed this documentation . It is working a little bit odd on error messages. When the username is correct and password is wrong, it doesn't add any messages to session. It just has basic info like path. app.post("/login",(req,res)=>{ const user = new User({ username:req.body.username, password:req.body.password }); console.log(req.session); req.login(user,function(err){ if(err){ console.log(err); } else{ passport.authenticate("local",{ failureRedirect: '/login', failureMessage: true })(req,res,function(){ res.redirect("/secrets"); }); } }); }); When the username is wrong, it adds message to session but it doesn't reload properly. it doesn't reload at all to "/login". I have to literally...

How can I upload the first name, last name, job and profile picture of the user?

Please Help me I want to know how to upload the first name, last name, job, date of birth and a picture of the user in Flutter Null Safety this is my signup import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/material.dart'; import 'package:newlivenullsaf/pages/login.dart'; class Signup extends StatefulWidget { @override State<Signup> createState() => _SignupState(); } class _SignupState extends State<Signup> { final _formkey = GlobalKey<FormState>(); var email = ''; var password = ''; var confirmPassword = ''; @override void dispose() { emailController.dispose(); passwordController.dispose(); confirmPasswordController.dispose(); super.dispose(); } bool isLoading = false; final nameController = TextEditingController(); final emailController = TextEditingController(); final passwordController = TextEditingController(); final confirmPasswordContr...