Interesting questions
-
0
votes1
answer173
viewsZF2 - Runtimeexception: Module (Zfcuserdoctrineorm) could not be initialized
I just downloaded the Composer installer. This is what I have in my Composer.json: "require": { "php": ">=5.3.3", "zf-commons/zfc-user": "dev-master", "zendframework/zendframework": "2.3.*",…
-
2
votes2
answers81
viewsFix incorrect module return
Mathematically speaking why it happens and how to fix the following "error" in python: >>>10.53 % 1 0.5299999999999994 I’d like to understand how the python works to obtain this value, why…
-
15
votes8
answers1094
viewsIs it recommended to use constants for configuring a PHP project?
It is very common to see constants in a configuration file in a PHP project, but I would like to know if this is really the best practice, because I think if I store the password of a database in a…
-
2
votes1
answer24
viewsI’m trying to do a validation on the Laravel but it’s not going
When I leave the registration form fields without filling in, rule messages are displayed. This is the customer registration code: <?php namespace App\Http\Controllers; use…
-
5
votes1
answer109
viewsHave the functional features of Java 8 made any Pattern design obsolete?
It is said that functional programming makes certain design patterns (thinking of the Gof) unnecessary. There’s even a presentation showing it somewhere (I’m not looking now because I’m on cell…
-
16
votes4
answers3235
viewsIs there a Website/API to host photos on the web?
I wonder if there is any API that makes it possible to host photos on the web. Example: cloud.push(arquivo, callback, fail); I will use this API for the purpose of enabling users to host images for…
-
0
votes0
answers74
views@React-Native-firebase/admob does not work
I am trying to insert ads into my code in React Native via the @React-Native-firebase/admob library. I took the whole step by step of the Admob platform to create my account and create my first…
-
-1
votes1
answer58
viewsMysql 8.0 Database Registry with PHP 8.0.5
Fala galera! I am a beginner in PHP and am unable to insert data into my Mysql database. Just follow my code: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta…
-
0
votes1
answer1146
viewsSending Email Via Proxy - Javamail
This is my code: (UPDATED 2) I updated my account. I allowed access by external apps and then it worked !!! PS: but I had to make some of the suggested changes. So I marked the answer below as the…
-
1
votes3
answers2136
viewsError 500 Internal Server Error
I am trying to make a POST query with jquery on my website online but I get the error message 500 Internal Server Error, this is the query (jquery): $('#background').load('map_page.php',…
-
1
votes1
answer296
viewsHow to add a vertical line in Google Chart?
Problem: I’m not able to insert the vertical line in the google chart. Solution: I would like to add a line on the right side of the graph according to the image. HTML code: <script…
-
0
votes1
answer3200
viewsCreating a message of success when able to perform an action LARAVEL 5.4
I’m trying to get you informed a message of success in a div when an action is carried out, however I could not yet, the error that appears is: (3/3) Errorexception Undefined variable: sucess (View:…
-
4
votes4
answers1225
viewsHow to block website and leave free only for some ips?
I would like to know how I can block my site that is under maintenance and leave free access to two ips, I’m doing this way , but it only leaves free for one. I want you to be free for both of you .…
-
0
votes1
answer46
viewsHow to add many customers at once in a database table?
I need to add Name, Phone and Address of many clients who are in excel and pass this to the database. What would be the fastest way to do that ?
-
0
votes0
answers30
viewsWebsocket Server - Error in the npm server.js command
I tried to execute the command npm server.js and he turns me into that mistake: Error: System EADDRINUSE ::3000 At object. _errnoException (util.js:992:11) at _exceptionWithHostPort…
-
2
votes1
answer55
viewsIs it possible to "Group by" by column content?
I was wondering if it was possible to use GROUP BY based on the date of a column, in this case the column ANALYSIS that creates groups whenever it finds 0, instead of the column. DIA MES YEAR TODAY…
-
5
votes1
answer91
viewsWhat kind of data do you use to store the date of death in a register (Datetime or string)?
I have a record of people where I need to store birth dates (DateBirth) and death (DateDeath). Knowing that the guy DateTime in C# cannot be empty and its default initial value is 01/01/0001…
-
2
votes1
answer61
viewsPromotion Ecommerce consultation
I’m developing a platform Ecommerce, and I came across a problem to calculate the value of products, applying the discount of promotions in consultation SQL, currently the promotion rules are being…
-
0
votes1
answer1055
viewsDelete data with regards Many to Many in Laravel
I’m having a problem deleting associated data in Laravel. I have user tables, records and tags. As you can see the table users connects with records, while a pivot table (registro_has_tags) connects…
-
2
votes1
answer1350
viewsError executing bcp command inside a precedent
When I execute the command: DECLARE @cmd varchar(1000); SET @cmd = 'bcp "select [colunas] FROM [usuario].dbo.[tabela] " queryout "\\***\SQLServer\text.txt" -c -UTF8 -T -S***'; EXEC xp_cmdshell @cmd;…