Posts by Felipe • 578 points
23 posts
-
1
votes0
answers98
viewsQ: Class Relationship with Primarykey Composite in Hibernate
I have the following relationamento In the Definition Scale entity I have a composite primary key composed of idEscalaDetailing and idTurma I’m having doubts to do the reverse mapping between…
-
3
votes1
answer154
viewsQ: Error for Importing JDBC from sqlServer with Maven
In my java web application ,I needed to add a connection to a sql server database, so I put it as a dependency on Maven as described below: <dependency>…
-
2
votes1
answer146
viewsQ: Problem when merging
I’m doing merges, and in this action, accented characters are being swapped for symbols, I still don’t know what the source of the problem is, if it’s the encoding of the files, or if the problem is…
-
0
votes3
answers206
viewsA: Dynamic Array - Android
Using List you can create them dynamically follows the code: List<List<String>> valor = new ArrayList<ArrayList<String>>(); valor.add(Arrays.asList(valor0.split(";"));…
-
1
votes1
answer227
viewsA: Event.preventDefault() for attachment with php and js
First check in the form statement if you have the tag enctype="multipart/form-data" then try Using the class Formdata Ex $.ajax({ type: "POST", url: $(this).attr('action'), data: new FormData(this),…
-
1
votes1
answer2028
viewsA: Formgroup Angular
To create your own custom validation to be used in all your codes of project I recommend creating a file with these functions that extend Formcontrol. Here is an example I took from the site I refer…
-
0
votes2
answers53
viewsA: Delete data from Database
If the rule of integrity is ON DELETE, you just need to perform the delete query that data will also be deleted in the other table. Follow an example of deletion when the integrity rule is ON DELETE…
-
3
votes1
answer555
viewsA: Error generating PDF report with mpdf60
Remove the comment from the $css variable $mpdf=new mPDF(); $mpdf->SetDisplayMode('fullpage'); $css = file_get_contents("css/estilo.css"); $mpdf->WriteHTML($css,1); $mpdf->WriteHTML($html);…
-
0
votes1
answer95
viewsA: How to block users based on their location?
On the php website they refer to the extension GEOIP. With it you get detailed information of a host name or an Ip. See in the documentation here. Or you can use this api here https://ipinfo.io/.…
-
3
votes1
answer213
viewsA: Angular ng-Pattern - 1 or 2 numbers
For this your validation just put the regular expression below: ^([0-5]{1}\d{1})$|^(\d{1})$ You can perform the tests here…
-
2
votes2
answers953
viewsA: How to return the page in LARAVEL 5.4
After the registration deletion procedure you can use the helper back() defined in Laravel. See the function documentation here. return back(); Which will return to the same source page.…
-
2
votes1
answer718
viewsA: Controller or Resource controller, how do I determine which one to use?
The Resource Controller is a normal controller that implements CRUD functions by default, but by defining a Resource in the route file, you create multiple "routes" without having to write code for…
-
2
votes1
answer303
viewsA: Receive Json with empty arguments
Hello, To check if there is a key in json you can use the method has of the class Jsonobject. View documentation here Example: this.telefone = (rede.has("telefone")) ? rede.getString("telefone") :…
-
1
votes1
answer252
views -
0
votes2
answers586
viewsA: Update with foreach in the database
Solution example From what I understand you want to update row by row of a table that is mounted dynamically through php , follows the link from an example of how to structure your html for your php…
-
2
votes0
answers616
viewsQ: How to solve GIT DIFF encoding problem
for some files git diff presents me instead of accented characters , I don’t really know if the problem is git diff. The GUI I use for git is git Kraken, below is a print of the error.…
-
0
votes2
answers2192
viewsA: How to send multiple values with inputs of the same name
Solution Example Here I present a way of using the elements of the DOM with javascript. Notice that I have stored this data in a two-dimensional vector where each position is a student record. [ […
-
1
votes1
answer380
viewsA: How do I hide or clear the url when I get Asp.net mvc?
Change the method from GET to POST and I believe it will solve your problem
-
1
votes1
answer1721
viewsA: How to resolve Fatal error: Call to Undefined Function Contausuario() in
Use your class and call the method. try{ $result = $auth_user->ContaUsuario($connection); <h3><?php echo $result;?></h3> }
-
0
votes2
answers526
viewsA: Passing of parameter Laravel
I do not know if I understood very well , but try: route('transferir.edit', ['idservidor' => $destino->servidor->idservidor, 'setor' => $destino->setor ]);…
-
3
votes1
answer703
viewsA: get site url
Try $_SERVER['SERVER_NAME']. If you need the rest of the url you can use the arguments 'REQUEST_URI' and 'PATH_INFO'. I hope I’ve helped. Job documentation here.…
-
0
votes1
answer2242
viewsA: How can I create an edit button to edit a dynamically created table in Java
Solution Following their instructions, inputs when created should be assigned disabled as an attribute, to be removed by the edit function. The function code would look like this:…
-
3
votes1
answer112
viewsA: Get server operating system in PHP
Take a look at the function and make sure it’s what you need. php_uname('s') php_uname('m') php_uname('v') Php-uname…