Posts by Andre Lacomski • 307 points
19 posts
-
0
votes0
answers25
viewsQ: Collision when generating random number that is different from an already entered number
I have the following problem: It is necessary to assign a coupon number to a certain person after a purchase and it has the following conditions: it must have 6 digits, the first digit being the…
-
-2
votes2
answers43
viewsQ: Take a label by Parent() or id and replace
I have the following Opencart code snippet in Twig. {% for quote in shipping_method.quote %} <div class="radio"> <label id="{{quote.code}}"> {% if quote.code == code or not code %} {%…
-
0
votes1
answer46
viewsQ: Insert returns TRUE, but does not insert
I’m learning Laravel 6 and I made a registration form (I’m not using Laravel’s auth) and when I send the data and perform the Insert in the table it returns TRUE, but when I check in the Database it…
-
1
votes1
answer273
viewsQ: Invalid parameter type when using CURL with PHP
Good staff make a request in the pay.me API for me to recover some credit card data. When I use directly by the terminal with this code, I receive JSON correctly with all data requested: curl -X GET…
-
1
votes1
answer371
viewsQ: Protection of sensitive data in your database
What is the most appropriate way to protect sensitive data such as: CPF, credit card number, cvv, expiration date, etc. I have never had to store this kind of data in my applications, because I use…
-
5
votes1
answer251
viewsA: Calling a v-on by Javascript
I solved the problem as follows. My Vue object has been assigned to windows['_QuickCheckout'], so I call him in my file checkout.twig and assign the necessary values without having to use the…
-
4
votes1
answer251
viewsQ: Calling a v-on by Javascript
Good people, I have a form that uses Vue, where every time I write something it makes a request in the backend to save the data with the v-on:change and when I leave the field he does the same thing…
-
0
votes1
answer203
viewsQ: evaluating 'this.props = props' React Native
I am learning React Activate and I am having a hard time. I am following this tutorial: https://blog.logrocket.com/navigating-react-native-apps-using-react-navigation/ I perform all the same…
-
2
votes1
answer59
viewsQ: Selecting direct checkbox from console
Good afternoon guys, I’m having a question, I need to select several automatic checkbox to get faster the process of creating a new user. But I don’t know what to do. I put the following code in the…
javascriptasked Andre Lacomski 307 -
0
votes2
answers518
viewsA: Chained list - [Error] Storage size of 'mylist' isn’t known
Declare your structs in the file . h
canswered Andre Lacomski 307 -
0
votes5
answers5734
viewsA: Inverting elements of a vector in C
You are always putting in the first position what you want to reverse, without varying the i just the j #include <stdio.h> #define N 5 int main(){ int vetOriginal[N], vetInvert[N]; int i = 0,…
-
0
votes1
answer341
viewsA: Language C switch command 2 instructions within the same case
I recommend not to use gets, in case you want to use fgets instead. However I use scanf even. Exchange gets(&throttle) by: scanf("%c", &acelerador); And all will work well. Complete code…
canswered Andre Lacomski 307 -
1
votes1
answer110
viewsQ: Taking an SQL field value after function return
How do I get a certain value from the SQL table after I have made a select. It will always return a single value $sql = "SELECT MAX(cod_periodo) from periodo_edital"; $query =…
phpasked Andre Lacomski 307 -
1
votes1
answer44
viewsA: Save an ng-repeat value and use it in another
RESOLVED! I used ng-change to call my getCurso() function: <select required ng-model="lista_programa_pos.model" class="form-control" ng-change="getCurso(lista_programa_pos.model);"> <option…
angularjsanswered Andre Lacomski 307 -
1
votes1
answer44
viewsQ: Save an ng-repeat value and use it in another
My question is the following. First I perform a search and fill my first select with ng-repeat. So far so good, but I perform another search for a second select that depends on this my first search.…
angularjsasked Andre Lacomski 307 -
1
votes2
answers458
viewsA: Jquery-Mask plugin does not work
I solved the problem by placing my jquery link before bootstrap and angular. Thank you all for your answers!
-
1
votes2
answers458
viewsQ: Jquery-Mask plugin does not work
I’m having trouble inserting a mask into an input, follow my codes: My login screen I want to insert the mask: <?php /* * Create by Andre Tohouca Lacomski on 28/03/2019 */ defined('BASEPATH') OR…
-
1
votes1
answer381
viewsQ: Failed to load helper "Unable to load the requested file: helpers/login_helper.php"
Good morning guys, I can’t load my helper with Codeigniter, I have no idea what happens: my autoload.php is like this: $autoload['helper'] = array('url', 'login'); and my helper is like this:…
-
0
votes3
answers1001
viewsQ: Take an input value without Submit
I need to keep the value one input radio to concatenate into a href later, but before making the Submit. My form code: <form action="recuperarsenha.php" method="POST"…