search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

P粉546138344

P粉546138344

Follow
student

Follow 0
fans 0
integral 0
Add 2 hours to current time in MySQL?

Which is the valid syntax of this query in MySQL? SELECT * FROM courses WHERE (now() + 2 hours) > start_time note: start_time is a field of courses table

2025-12-30 12:01:11Ask
MySQL
How to split an integer into a list of digits?

Suppose I have an input integer 12345. How can I split it into a list like [1, 2, 3, 4, 5]?

2025-11-27 19:43:30Ask
Python
Vue 3 migration: Prop type becomes unknown type

I have migrated the application from Vue2 to Vue3 as follows: https://www.vuemastery.com/blog/vue-3-migration-build/. I'm having an issue related to props and their types. According to "linter" it seems that the type of all props is unknown. Because it won't show any errors on the template itself. For example. I have a property "cancelText" defined as follows: cancelText:{type:StringasPropTyp

2024-03-27 18:37:31Ask
Vue.js
Upgrading Laravel 9 to 10: Update files outside vendor folder

I want to upgrade an existing Laravel9 project to version 10. The goal is that not only vendor files can be updated via Composer. Additionally, I want changes in my project code to be reflected outside the vendor folder. I upgraded my project following the Laravel documentation's upgrade guide. This is the changed file. For example my app/Console/Kernel.php should be changed to <?phpnamespaceApp\Console;useIlluminate\Console\Schedu

2024-03-27 11:05:01Ask
PHP
If the table does not exist, insert into the table

I have an application where the user can add serial numbers (units) to a circuit. I'm trying to modify an insert query for two tables to check if a cell ID already exists. If it doesn't exist, I want to insert it, but if it does exist, I don't want to insert a new record. I have searched and tried to apply the answers I found on SO related to this without any success. This is my code to controller publicfunctionAddNewCell(){if($_SERVER['REQUEST_METHOD']=='POST')

2023-09-05 15:53:43Ask
PHP
How to open a compressed PDF from a browser link?

Using MSEdge browser on Windows11... I have a directory with three PDF files, two of which are inside zip files: file1.pdfmyfile.zip/file2.pdfmyfile.zip/file3.pdf I want to get the file from static HTML page to access these contents. Something like...<ahref="file1.pdf"target="_new1">file1</a>&

2023-09-04 21:10:37Ask
HTML
OpenAI gpt-3.5-turbo: Request failed with status code 400

Does this method in node.js no longer work? Because then it was working fine but now it is not working anymore and this code is also based on their official documentation which is https://platform.openai.com/docs/api-reference/completions/create My server side code: import{Configuration,OpenAIApi}from'openai';//....constconfiguration

2023-09-01 12:17:58Ask
JavaScript
Title rewritten to: "Invalid argument: The argument supplied to foreach() is invalid"

It's common for me to deal with data that can be either an array or an empty variable, and feed that data to some foreach. $values=get_values();foreach($valuesas$value){...} When you provide data that is not an array to foreach, you will receive a warning: Warning:Invalidargumentsuppliedforforeach()in[...] Assumption Unable to refactor get_values() function

2023-08-21 12:14:09Ask
PHP
How to expand the header of a panel with css target

If the title of the MudExpansionPanel is a different color than the body of the panel content.

2023-07-24 20:17:03Ask
CSS3