Posts by willian rodrigues andrade • 85 points
28 posts
-
0
votes0
answers290
viewsQ: add attribute to an unknown select option or more
I have a code that dynamically defines input fields. In one context, I have several selects being defined, and I do not previously know the name or your id. Select inputs and selects options are…
-
0
votes1
answer582
viewsQ: Angular Typescript input change Event
I have an input field that starts with a number('.2-2'). This input is updated when a select field modifies its value. When this field is modified, the value of the numver input does not obey the…
-
0
votes1
answer116
viewsQ: JPA read-only database
Good morning, I have an unusual case for me. A database where I need to make selects and update in 1 or 2 columns of a table. I would like to know how to configure my persistence.xml Persistence.xml…
-
0
votes1
answer87
viewsQ: Jaxb and JPA: class Embeddable Could not determine type for java.util.List
I’m trying to incorporate a class into another class. I’ve been able to do this in other scenarios, however, by the error shown below, I’m not getting it now. javax.persistence.PersistenceException:…
-
0
votes0
answers301
viewsQ: JPA References an Unknown Entity
I have the following scenario: Class Rpsv3vo: package nfse.vo; import java.io.Serializable; import java.util.Objects; import javax.persistence.CascadeType; import javax.persistence.Column; import…
-
0
votes0
answers22
viewsQ: Triger after update as a solution to debit credits safely
I need to make an interface that guarantees the integrity of the customer’s credit. In PHP, when we use LOCK explicitly in PDO, with LOCK TABLES, when dealing there may be inconsistency, when the…
-
0
votes0
answers60
viewsQ: How to define better names for system entities?
How to define better names for entities in my system. I have a user table. And I have a reset password table where I relate information from the password reset process (id, hash, expiration…
-
0
votes1
answer49
viewsQ: How to create a Rigger After Update
I need to create a Trigger that performs an update in column A of table T, as soon as column B of that table is updated. So I think I need to create an After Update. But from what I understand, it’s…
-
1
votes0
answers120
viewsQ: How to create a filter for a multi-dimensional Mixed array
I have in my POST complex variables with arrays inside other arrays and etc. Behold: $filtro['esms_conta_id'] = 120; $filtro['data_inicio'] = 2016-010-1; $filtro['data_final'] = 2016-010-1;…
-
0
votes0
answers86
viewsQ: convert json data to string or array in php
I have this json and would like to know how to convert it to an arrag/string {'texto_mensagem': {'texto': 'Mensagem de envio'}, 'numero_celular': [{'numero': '5537988440956'}, {'numero':…
-
0
votes1
answer284
viewsQ: Slim Framework simplexml_load_string parser error
My application sends a string in XML format to the server. $(function() { var xml = "<?xml version='1.0' encoding='UTF-8'?> <note> <to>Tove</to> <from>Jani</from>…
-
1
votes0
answers117
viewsQ: Slim Framework status code 404
When making requests I get the following error. Xmlhttprequest cannot load http://www.domain.com.br/api. Response for preflight has invalid HTTP status code 404 Man .htaccess is like this:…
-
1
votes0
answers29
viewsQ: Web service data format identification
Good night! I am implemented a service in one system for other systems to consume. This system consumes data in XML and JSON formats. I want to know if there is any way to identify when the user…
-
0
votes0
answers79
viewsQ: How to use the contenttype sent by the client on the server
Good afternoon! I am trying to understand the workings of contenttype. As far as I know, I would be telling the server to use the formed JSON UTF8 to correctly encode the data I am sent.…
-
0
votes0
answers908
viewsQ: How to use Ajax contenttype to transfer XML and JSON data between services?
Good afternoon, you guys! I need to pass data in XML and JSON formats to an API I am developing. Every time I place contenttype: "application/json/xml; charset=utf-8" in my Ajax block, I get the…
-
0
votes1
answer61
viewsQ: Slim Framework with Apache2.4
Good morning. I am creating an API to provide a service for other applications. I have the following scenario. A system to provide the service. This system has a virtualhost configured. The Uri is…
-
3
votes1
answer62
viewsQ: Checking the type of data received in the PHP POST
I need to find out what kind of data I’m getting in a user post. The user can provide me the data in XML, JSON HTML and text format Content-Type = text/xml / json / text / html Accept =…
-
0
votes1
answer479
viewsQ: Integration between systems with PHP
I need to provide a service for other systems to consume. These systems can make requests POST (string, array, xml and json) and GET. Well, I know I can consume services from other systems using GET…
-
0
votes1
answer117
viewsQ: recover Datetime in Mysql between current date
In my database I have 2 fields: "data_start and data_end". From a current Datetime, I need to select all dates that are in the range that date_time >= data_start AND date_time <= data_end. I…
-
0
votes0
answers57
viewsQ: php class Singleton thread type
I have a class that accesses the service layer of my application. This class is a Singleton. Through the service, it accesses the data in a uniform way, so that my application has the expected…
-
1
votes2
answers548
viewsQ: Start php script in background
I have the.php upload file and I need it to run in the background while my application is used by users. The file send.php instance a pool of Threads that make specific uploads from my system to the…
-
0
votes1
answer614
viewsQ: Access /index.php as /index (without ".php")
Using regular expressions, I can check index.html pages as index but not index.php pages as index. My . htaccess. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond…
-
0
votes1
answer351
viewsA: Fatal error: Class 'Mail' not found in xampp php Pear Mail mail.php
Following the tip of the friends we managed to solve. thank you all. $mime = new \Mail_mime();
-
-4
votes1
answer351
viewsQ: Fatal error: Class 'Mail' not found in xampp php Pear Mail mail.php
I have an app with namespace set. I use Mail/Mail.php and mime.php to send email. I have a scope problem. I include the email class within my scope. The error output is: Fatal error: Class 'Mail'…
-
1
votes3
answers785
viewsA: file_exists php function - relative and absolute path
The question was simpler than I imagined. When starting the application, it is just me giving a require in a file, with this class constant and from there it will already be in memory. Problem…
-
0
votes3
answers785
viewsQ: file_exists php function - relative and absolute path
In PHP applications, when I use absolute path, everything works perfectly, but when I use relative path, it doesn’t work. An example: in my application I have to use this:…
-
0
votes0
answers50
viewsQ: Problems with scope in php, can anyone help me please?
I have some classes, I will post them to you can then explain my problem which is quite simple. class connection to the database <?php /* * Gerencia conexões com bancos de dados, * usando…
-
1
votes1
answer445
viewsQ: Generating tables in sql-server with Hibernate
I am migrating a Java system to work with 2 or more databases. I created the tables for Firebird using Hibernate without many problems. The second database was not successful. SQL-Server. Because…