Hashi
Hashi
KPCKevin Powell - Community
Created by Vandana on 9/4/2024 in #front-end
Check if two strings are Anagram.
You could probably add check in your second word iteration, if a letter doesn’t exist in first word result {} so you return false earlier, although it’s definitely overkill 😁
33 replies
KPCKevin Powell - Community
Created by Vandana on 9/4/2024 in #front-end
Check if two strings are Anagram.
Yeah yeah I saw OPs answer 😁
33 replies
KPCKevin Powell - Community
Created by Vandana on 9/4/2024 in #front-end
Check if two strings are Anagram.
Oh yeah I haven’t checked just read your answers, imo it’s the more efficient way, although involves a bit more code
33 replies
KPCKevin Powell - Community
Created by Vandana on 9/4/2024 in #front-end
Check if two strings are Anagram.
What about counting letter occurrences of both words and comparing the results, reed/deer r-1;e-2;d-1?
33 replies
KPCKevin Powell - Community
Created by shadow7 on 7/26/2024 in #back-end
Need help with design suggestions for my app
As a starting point to me it seems that you have: Users, "Assembly details", "Attached files", Actions (and action details?), Deliverables.
30 replies
KPCKevin Powell - Community
Created by 13eck on 7/18/2024 in #back-end
.Net 8 Database Interfaces
There are ways to do that in EFCore too, but I guess it would be too weird to use EFCore just to write raw SQL 😁 . Maybe go without EFCore with this project to see how it is without a framework to do some heavy-lifting. And you can use EFCore for some other more complicated project if you wish so in some time. For the migrations I am not sure how you can achieve that without having defined entity classes and efcore, haven't used it that way ever. If you want to hone your SQL skills you can even write your own table definitions and store them in a schema.sql file, so every time you run it you get an empty database with all tables created, and maybe seed.sql or seed statments appended in the schema.sql.
26 replies
KPCKevin Powell - Community
Created by 13eck on 7/18/2024 in #back-end
.Net 8 Database Interfaces
In my opinion should give a try to EF Core if there is any possibility that your app gets an upgrade (schema change). And extra column or type change would mean that you need to scan all your queries to be sure that you are not introducing breaking change(s). From my experience its quite easy and not much extra code involved to get EF Core going, set up dbContext, create Entity class for each table, and create migration(s) and apply them to the database. Also that would mean that your queries won't be coupled with SQLite and you can switch it up at some point easily.
26 replies
KPCKevin Powell - Community
Created by relja on 7/15/2024 in #front-end
Is there a way to detect when an element wraps using only CSS (flexbox or grid)?
Could it maybe work with container query that is based on the height, if it’s bigger than x then most likely it’s more than one β€œline”?
10 replies
KPCKevin Powell - Community
Created by SpongeBob on 7/3/2024 in #back-end
Cookie from backend not getting set in frontend
I would guess there is domain difference maybe, like your cookie is being set to "localhost:5173" but you are trying to access it from "localhost:5000"
12 replies
KPCKevin Powell - Community
Created by SpongeBob on 7/3/2024 in #back-end
Cookie from backend not getting set in frontend
If there is no cookie showing, and there is no cookie send with the request there is no need to debug the code related to "protectRoute". First I would check if there is really "Set-Cookie" header being send upon login. If you can see it then, maybe you have invalid cookie value and the browser is ignoring "Set-Cookie" header
12 replies
KPCKevin Powell - Community
Created by SpongeBob on 7/3/2024 in #back-end
Cookie from backend not getting set in frontend
Well I guess if you are using chrome it should show under Application => Cookies.
12 replies
KPCKevin Powell - Community
Created by SpongeBob on 7/3/2024 in #back-end
Cookie from backend not getting set in frontend
The function for set cookie when is it invoked? Ideally you should be able to screenshot the response headers that contain the cookie in the network tab of the browser.
12 replies
KPCKevin Powell - Community
Created by Savio on 7/4/2024 in #back-end
MongoDB POST ISSUE
I don't know much about the stack of technologies you are using, but my guess is that you have registered '/users' to be PUT Method, but from the front-end you are using POST Method
7 replies
KPCKevin Powell - Community
Created by ~MARSMAN~ on 7/3/2024 in #back-end
Handling POST request in Express.js
Well I have no idea how to help you with that, but basically it works with HTTP and you have to make it work with HTTPS
34 replies
KPCKevin Powell - Community
Created by ~MARSMAN~ on 7/3/2024 in #back-end
Handling POST request in Express.js
Switch to https in postman and it will break there too most likely
34 replies
KPCKevin Powell - Community
Created by ~MARSMAN~ on 7/3/2024 in #back-end
Handling POST request in Express.js
here Origin is HTTPS
34 replies
KPCKevin Powell - Community
Created by ~MARSMAN~ on 7/3/2024 in #back-end
Handling POST request in Express.js
Oh I think I have an answer, I see HTTP there not HTTPS
34 replies
KPCKevin Powell - Community
Created by ~MARSMAN~ on 7/3/2024 in #back-end
Handling POST request in Express.js
Is the postman requesting to the same url as your "fetch()" function does, the "absolute url"?
34 replies
KPCKevin Powell - Community
Created by ~MARSMAN~ on 7/3/2024 in #back-end
Handling POST request in Express.js
Can you share also headers, url, payload being send through Postman?
34 replies
KPCKevin Powell - Community
Created by ~MARSMAN~ on 7/3/2024 in #back-end
Handling POST request in Express.js
If I understand correct the problem is the 404 response after submitting the form from the website, then a screenshot from the network tab for the request might be of some help, the headers, url, and payload for example.
34 replies