Posts by Hiago Souza • 5,837 points
240 posts
-
1
votes1
answer49
viewsQ: Code analysis in production
Hello, I wonder if there is any open source tool for me to analyze memory/processing usage allocated by my methods in production. I would like to know what methods need attention and improvements,…
-
0
votes1
answer278
viewsA: ng-include does not work after using a directive
I got it sorted, apparently it’s the terminal I removed him the priority and worked normally. appModule.directive('ngDynamicController', ['$compile', '$parse',function($compile, $parse) { return {…
-
0
votes1
answer278
viewsQ: ng-include does not work after using a directive
I needed to make a dynamic controller, but when I use the directive data-ng-dynamic-controller my ng-include doesn’t work someone knows what can be? ng-Dynamic-controller directive…
-
1
votes2
answers507
viewsA: Error entering data in Sqlite database
I believe the connection is not yet created try to assign the new Cribanco to mHelper as below: public class MainActivity extends AppCompatActivity { private EditText ed_hora_notificacao; private…
-
2
votes1
answer582
viewsA: Php - List products by category
Hello good night the problem probably occurs because vc do not have the $id variable being set before use of the function. Example filling the $id variable <?php $id = $_GET["id"]; $produtos =…
phpanswered Hiago Souza 5,837 -
1
votes2
answers3081
viewsA: How to allow cross-origin requests?
Hello what programming language you are using on your server (web services/API)? I’ll leave an example below in php and can be done easily in other languages. To enable CORS just return a header on…
-
1
votes2
answers490
viewsA: Problem using Securityerror iframe
Hello I do not know why it happened but solved my problem. This error only happened when I tried to typeof inside my beforeSend in ajax. I modified it to the script below and now it works:…
-
0
votes1
answer18
viewsA: Data display does not work
Hello, this is just a matter of logic. try to add the tag tr $select = "SELECT descricao, nome, datahora_final, valor, tipo_valor FROM teste"; $hoje = date('Y-m-d'); $result = mysqli_query($conexao,…
-
2
votes1
answer55
viewsA: Data search problems by name, returns nothing
Hello I made some changes to your file when you check the isset and assigns it to a variable you are assigning a boolean value (true/false) so I believe that might be it. Something else, when you…
-
0
votes2
answers490
viewsQ: Problem using Securityerror iframe
Good night, I have a form system, and my client wants to put the form on his website. His team requested me an iframe for implementation on the portals and web-sites but when I did a test presents…
-
0
votes1
answer313
viewsQ: Regular expression in XML string
Hello, I’m using a PHP library to generate words with some parameters. The library is Phpword, when I upload a file (DOCX) it opens the Document.xml file inside the DOCX archive. Example: <?php…
-
1
votes3
answers491
viewsA: How can I make a select and turn it into an array
So that you can make use of looping php. Example with the While while($vetor = mysqli_fetch_array($procura1)){ echo $vetor["posto"] . '<br/>'; } Example with the For $dados =…
phpanswered Hiago Souza 5,837 -
1
votes2
answers41
viewsA: onKeyDown when Spinner is open
The KEY event does not work because it will be fired in the "Spinner" Activity that is active. Below is an example of how to solve. Spinner oi = (Spinner) findViewById(R.id.meuspinner);…
-
0
votes2
answers41
viewsQ: onKeyDown when Spinner is open
Hello I’m trying to do an action when a user closes the spinner using the back button of the device. But the "onKeyDown" event does not run when the spinner is open, only if it is closed. How could…
-
0
votes1
answer199
viewsQ: Remove selected item in new selection in spinner
Hello I would like to remove an item already selected in the android spinner. Example: ItemA ItemB -> SELECIONADO ItemC ItemD Since Itemb is selected I wouldn’t want it to appear in the list when…
-
1
votes2
answers158
viewsA: Mysql update filtering by due date with tolerance of x Days
Try this way, assuming the due column is of type "date" or "datetime" $query = mysql_query("UPDATE finan SET status='Vencido' WHERE status = 'Em Aberto' AND vencimento + INTERVAL '$tolerencia' DAY…
-
1
votes1
answer101
viewsA: remove ". php" using . htacces in Ubdomain
1º Check that mod_rewrite is on. 2º Create the . htaccess file with the following content RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [QSA,L] Remember to put…
-
14
votes1
answer8812
viewsA: Angular JS Difference for Nodejs
Node.js It is a Javascript code interpreter that works on the server side. Its goal is to help programmers create high-scalability applications (such as a web server), with code capable of…
-
3
votes1
answer545
viewsA: Pick up specific fetchAll item in PHP
You can try the code below; $host = 'localhost'; // endereço do servidor de banco de dados. $dbname = 'seu_banco_de_dados'; //nome de sua base de dados $user = 'root'; // seu usuário do banco $pass…
-
0
votes2
answers630
viewsA: IP Blocked remote access mysql linux debian
You have root access to this database? If yes install mysql Workbench and connect to your server with root user. In the user area, probably this user will be limited to a host "localhost" or…
-
-1
votes2
answers491
viewsA: Get Timezone from browser using Angularjs
If you want the Browser Timezone formatted you can count on the Javascript method (since Angularjs is just a framework to work with it) Date.toString and do: var split = new…
-
1
votes3
answers1227
viewsA: Take the id of a database list, and use in another page to insert phones in PHP
On your link put like this <a href="adicionatel.php?id=<?=$id?>&nome=<?=$nome?>" class="btn btn-success">Adicionar telefone de contato</a> On your additel.php page put it…
-
0
votes1
answer79
viewsA: While - Returns a record
You are recovering an XML try to go through the array as below. $resposta = $vale->consultar( $dados ); foreach($resposta->lancamentos->lancto as $info) { echo $info->dt_lancto . " - " .…
phpanswered Hiago Souza 5,837 -
1
votes3
answers16008
viewsA: how to update column with single quote sqlserver
You can make use of the Escape Character. It is a term to identify a unique character within a string that changes the meaning of its successor. We can put as an example the line break in text files…
sql-serveranswered Hiago Souza 5,837 -
0
votes1
answer542
viewsQ: Listview with dynamic height(without scroll)
Considering the following structure: Listview (1) > Adapter (1) > Listview (2) > Adapter (2) I need to place a listview inside an Adapter, and in that list view there may be several other…
-
4
votes4
answers1532
viewsQ: Angular 2 Binding in Component
I have the following scenario. I have a list in one webservice, but when I expect a return to pass the value to my component, it just doesn’t do the Binding because it takes time, and even when it…
-
1
votes1
answer182
viewsA: Detecting ion-textarea change with ionic2
I got it guys, I used the directive of the angular2 itself. Below is an example <ion-textarea (keyup)="atualizar()"> Source: https://angular.io/docs/ts/latest/guide/user-input.html#!…
-
1
votes1
answer182
viewsQ: Detecting ion-textarea change with ionic2
I’m developing an app and I needed to detect the ionChange or keyUp of an ion-textarea in Ionic 2. Below are examples that work. my file.ts atualizar() { console.log('Atualizou :)'); } my . html…
-
1
votes1
answer198
viewsA: Manipulating records from a php array
You can use the foreach for this follows below an example foreach($array as $info) { echo $info['id']." - ".$info['param2']."<br/>"; } It has the go also put the foreach better for($i = 0; $i…
phpanswered Hiago Souza 5,837 -
3
votes1
answer177
viewsQ: Place objects on image
I wonder how could do to place objects on an image on Android. An example would be to have the photo and on it put other images like circles, triangles etc... How could do this on android?…
-
1
votes1
answer126
viewsQ: Problem with typescript + ionic2
good evening, I have the following problem. I have my project in Ionic and in it I created a folder only for models. app>model (o objetos do meu sistema) > minha-model-a.ts >…
-
0
votes1
answer420
viewsA: How to fix these errors in PHP: Notice: Undefined - Deprecated
This type of error occurs when you try to access a variable that may not be set. There are several ways to validate this or you can use isset, or else put one before it to ignore it. Example isset…
phpanswered Hiago Souza 5,837 -
1
votes1
answer738
viewsQ: Inject token into the header of all http requests
I am trying to create a general method to insert a token in all my http requests. I don’t know much about angular 2 but I did it the way below: Filing cabinet generic-service.ts import {Http,…
-
3
votes1
answer666
viewsA: Like/Excuse button with AJAX
Initially you need a handle of this button as vc will probably have several buttons like this we will use a class.. And let’s put an ID to represent the real object ID. Leave the link this way:…
-
5
votes2
answers17029
viewsA: CNPJ validation in Javascript
Put the onblur so that when leaving the field it validates for you. Follow the example below of how you would do in your input. <input type="text" name="cnpj" id="cnpj"…
-
0
votes1
answer124
viewsA: Error - Lighting Led with 74HC595
Try to use a delay between the high ones in the loop is best #define latchPin 5 #define clockPin 6 #define dataPin 4 #define tempoAtualiza 1 void setup() { pinMode(latchPin, OUTPUT);…
arduinoanswered Hiago Souza 5,837 -
0
votes1
answer101
viewsA: AJAX receives JSONP as "Undefined"
UPDATE 23/05/2016 Good morning your informed return is an application/json but your return is a script remove the header header('Content-Type:application/json;charset=UTF-8'); in your PHP and in…
-
2
votes0
answers99
viewsQ: Set the ion-radio as required
I am mounting a dynamic form using ionic2, but multiple choice components do not accept the property required how would I do that on Ionic? The component I’m trying to put property required is the…
-
0
votes1
answer41
viewsA: Jquery version giving problems
Try using jQuery’s noConflict. Below is an example. <script src="https://code.jquery.com/jquery-1.4.1.js"></script> <script type="text/javascript"> jQ = jQuery.noConflict(); //Caso…
jqueryanswered Hiago Souza 5,837 -
3
votes2
answers194
viewsA: Schedule of commitments using fetchAll(PDO::FETCH_NAMED)
Good night, So there are several ways to rescue this information that I recommend is the foreach. However I will leave the two examples. Example with foreach <?php //... daqui para trás é o seu…
-
0
votes1
answer1462
viewsQ: *ngFor with angular2
I would like to create a loop of repetition, but in this loop I already have the amount of times it will perform. Below is an example of the expected result using javascript. for(i = 0; i < 5;…
-
3
votes1
answer125
viewsA: Error 500 while using . htaccess
Probably a disabled mod_rewrite problem, follow the steps below. Open the httpd.conf file, look for the line: #LoadModule rewrite_module modules/mod_rewrite.so and uncomment by removing the "#"…
-
1
votes1
answer55
viewsA: Mysql, number of rows in a table with values from another table
Make use of subselect for this. Below is an example of SQL to help you: SELECT username as user, (SELECT count(1) as qtd FROM mensagens WHERE mensagens.user = users.username) as msg_count FROM users…
mysqlanswered Hiago Souza 5,837 -
6
votes2
answers330
viewsA: Why do my Jquery events stop working after an AJAX request?
When the element is inserted in the DOM via javascript it is necessary to inform the selector of the same of it. Example: $('body').on('click', '.remove-item', function(){alert('teste')});…
-
3
votes1
answer504
viewsQ: Mysql select Random with priorities
I have the following scenario, I have a table and I need to select an order by RAND(). But I would like to put some conditions for example: TABELA ID | NOME | IDADE | GRUPO Dice 1 | Hiago | 20 | 1 2…
-
0
votes2
answers475
viewsA: Installation Do icheck
As informed the error presented is: Uncaught ReferenceError: $ is not defined(anonymous function) @ index.php?mod=info-produto:365 morris.min.js:6 Uncaught Error: Graph container element not found…
-
3
votes1
answer1171
viewsA: Error: Access to Debug bin file
There is probably a process already running from Exe that gets inside the bin. Ai the compiler tries to rewrite and cannot. It has happened to me many times so just do the steps below that should…
c#answered Hiago Souza 5,837 -
1
votes2
answers667
viewsA: how to go through all elements of a php array with javascript
Instance a variable outside the foreach, it is rewriting. PHP $final_result = ""; foreach($_SESSION['carrinho'] as $id => $qtd){ $sql = "SELECT * FROM produtos WHERE id_produto= '$id'"; $qr =…
-
7
votes2
answers749
viewsQ: Table does not appear in EDMX models
I have a problem in an application I am developing, I created the models using the ADO.NET Entity Data Model. However a specific table is not appearing follows below the script I am using to create…
-
2
votes3
answers2001
viewsA: Error trying to send email
When trying to send the email at port 25 you cannot have SSL active. The door 25 was closed by providers in Brazil, I don’t know if that could be a problem. But to solve your problem make use of SSL…